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

Actually, if you look at the start of the passage, they clearly state "An object has a storage duration that determines its lifetime"

This is before they talk about 'static'. This implies that a variable, by default, wether it be local or global, doesn't have static storage duration.

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