top | item 44860949 (no title) dogline | 6 months ago You gave an IOCCC snippet as an example of a C99 coding trick you know? I mean, the code looks visually cool, but it's funny to explain a code concept using code shaped like an anime character. (At least that's what I think it is.) discuss order hn newest omoikane|6 months ago I don't know how to link to just a specific part of the line, but the interesting bit is at the end of line 16 and the start of line 17: x*=02//* */2 -1; With C89, this is evaluated as "x *= 02 / 2 - 1", or "x *= 0".With C99, this is evaluated as "x *= 02 / -1", or "x *= -2".
omoikane|6 months ago I don't know how to link to just a specific part of the line, but the interesting bit is at the end of line 16 and the start of line 17: x*=02//* */2 -1; With C89, this is evaluated as "x *= 02 / 2 - 1", or "x *= 0".With C99, this is evaluated as "x *= 02 / -1", or "x *= -2".
omoikane|6 months ago
With C99, this is evaluated as "x *= 02 / -1", or "x *= -2".