...
Code Block | ||||
---|---|---|---|---|
| ||||
union a_union {
int i;
double d;
};
int f(void) {
double d = 3.0;
return ((union a_union *) &d)->i;
}
|
Because of optimization, the function f()
may return something other than the expected value.
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
union a_union {
int i;
double d;
};
int f(void) {
double d = 3.0;
return ((union a_union *) &d)->i;
}
|
Because of optimization, the function f()
may return something other than the expected value.
...