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

>>108
ISO/IEC 9899:1999
Annex J
J.1 Unspecified behaviour
The following are unspecified:
- The value of a union member other than the last one stored into (6.2.6.1).


§6.2.6.1/7:
When a value is stored in a member of an object of union type, the bytes of the object representation that do not correspond to that member but do correspond to other members take unspecified values, but the value of the union object shall not thereby become a trap representation.

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