Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What will this C code do?

Name: Anonymous 2012-01-19 8:24

void main(){
int x=1;
printf("%d\n",x=2);
}

Name: Anonymous 2012-01-22 13:40

>>122
I said they can't have automatic duration. If you don't explicitly initialize a global variable, it's value will be 0, unless of course you only declared the variable, in which case it will just be ignored if you don't provide a definition.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List