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

>>73
In some cases, what will happen, is that the variable will no longer be a tentative definition once the translation unit is completed. In other words, the uninitialized variable will in fact, become initialized. And depending on what you're trying to achieve, initializing the varible in such a case may in fact hinder the performance of the program.

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