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

>>142
Under section 6.2.2

"If the declaration of a file scope identifier for an object or a function contains the storage-class specifier static, the identifiere has internal linkage."

Now you annoying stupid shit, the point is, using static modifies the global variable in such a way that is now has internal linkage. In other words, there passage in no way shape or form implies that global variables have static duration.

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