Why does this print 0 even when i is neither a global variable nor a s
int i;
Printf("%d\n", i);
Why does this print 0 even when i is neither a global variable nor a static int ?
Also if I increment before printing, it prints 1
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ben ThompsonRank #8,839 · 215 reputationPosted Mar 9, 2021, 3:32 PM EST
Gopal153 reputationPosted Mar 20, 2021, 12:22 AM EDT