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

>>90
because an overflow can occur (undefined behaviour)
All the architectures I work with use 2's complement for signed integers, so normally I would expect it to be very well defined.

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