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

>>146
Better yet, let me cite it for your stupid ass..

Under section 6.2.4

"An object whose identifier is declared with external or internal linkate, or with the storage-class specififer static has static storage duration. Its lifetime is the entire exeuction of the program and its stored value is initialized only once, prior to the program startup."

In other words, 'static storage duration' is a result of using the 'static' keyword you fucking idiot.

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