Since 5/7/2012 2:42:10 PM, nitsnow has written 1 articles and participated in 2 conversations. nitsnow signature: nitsnow
nitsnow's articles:
Items(1) /1
Does this program have undefined behavior?5847 (11/15/2009 6:36:08 AM) comp.lang.c #include int g = 1; int func_2() { g = 2; return 3; } int main() { int *l = &g; *l = func_2(); /* LHS evaluates to g, and RHS writes to g */ printf("g = %d\n", g); ... nitsnow
nitsnow's replies:
Items(1) /1
Does this program have undefined behavior?5847 (11/15/2009 6:36:08 AM) comp.lang.c #include int g = 1; int func_2() { g = 2; return 3; } int main() { int *l = &g; *l = func_2(); /* LHS evaluates to g, and RHS writes to g */ printf("g = %d\n", g); ... nitsnow(3)