// this compiles wrong struct Data { int a,b,c,d; }; void func(Data *item, int val) { Data temp = {0}; *item = temp; item->c = val; }
-
-
This Tweet is unavailable.
-
@dmmfix@cmuratori@nothings Neither - the assignments get executed in the wrong order (i.e. item->c = val; *item = temp;).
End of conversation
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.