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

>>120
You mean an uninitialized variable? It would have an indeterminate value, but it would still have been allocated. If by unnamed variable you're referring to unnamed members of a struct or union, again, it would still be allocated somewhere. In the case of a flexible array member, it would have allocated duration.

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