3 ms·
isn't y = x + x++; undefined behavior in C, because of a lack of a sequence point? If that's true, then it makes sense for no C programmer to know what hap
by neutrono 4y ago
isn't
y = x + x++;
undefined behavior in C, because of a lack of a sequence point?
If that's true, then it makes sense for no C programmer to know what happens..
I think to fix it you would have to go like:
y = x;
y = y + x++;
I think that would work..