Pierre H. on Nostr: Without using a compiler or assimilated tool, what does this print in C? ``` #include ...
Without using a compiler or assimilated tool, what does this print in C?
```
#include <stdio.h>
int main(void)
{
unsigned limit = 0;
int count = 0;
for (int i = -10; i < limit; i++) {
count++;
}
printf("%d\n", count);
}
```
Published at
2024-08-25 20:05:56Event JSON
{
"id": "c96d2ac7c24186c78a50d55741d55a2c5aa3641f8fc6556f159de2a7f6567e5f",
"pubkey": "e47f2012440c128c3cbc40b02df60d3a995456f02202b54ce00a68e6232234cd",
"created_at": 1724616356,
"kind": 1,
"tags": [
[
"proxy",
"https://infosec.exchange/@madcoder/113024457549164119",
"web"
],
[
"t",
"include"
],
[
"proxy",
"https://infosec.exchange/users/madcoder/statuses/113024457549164119",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://infosec.exchange/users/madcoder/statuses/113024457549164119",
"pink.momostr"
],
[
"-"
]
],
"content": "Without using a compiler or assimilated tool, what does this print in C?\n\n```\n#include \u003cstdio.h\u003e\n\nint main(void)\n{\n\tunsigned limit = 0;\n\tint count = 0;\n\n\tfor (int i = -10; i \u003c limit; i++) {\n\t\tcount++;\n\t}\n\tprintf(\"%d\\n\", count);\n}\n```",
"sig": "b9bbc89179a700ca1e2d706961543216326dee3fcec958811e7de123c2e79acd34fd600b62111491f4c92860be778d437b708936c18c2cad6c441b3d103f30b5"
}