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 14:44

>>138
No, you misunderstood. It's saying that if the variable is used as an expression, it must be defined. Otherwise, it need not be. However, we're going slightly off-topic. The original argument, that all global variables have static duration, still stands. I don't count variables that have no definition.

>>139
What I'm getting at is that it does have a definition.

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