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:36

>>119
And more to the point you annoying fucker...

You realize global variables have file scope by definition, right? Since they have file scope, they can't have automatic duration.

I can think of a case where a global variable doesn't have automatic duration. In other words, the variable wouldn't have an object associated with it.

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