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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ben ThompsonPosted Mar 9, 2021, 8:32 PM
GopalPosted Mar 20, 2021, 4:22 AM