3 ms·
I’m confused by one line from the first code block in the “A Demonstration” section: intmax_t val = imaxabs(val); This is the first time `val` is defined in t
by CaliforniaKarl 6y ago
I’m confused by one line from the first code block in the “A Demonstration” section:
intmax_t val = imaxabs(val);
This is the first time `val` is defined in the block, so wouldn’t this raise a C compiler compilation error? If not, then I don’t understand the effect of this line.
- SAI_Peregrinus 6y agoIt should be intmax_t val = imaxabs(original); for the snippet to make any sense.
- jcelerier 6y agotechnically, int x = x; compiles, but is UB - you can turn it into a compile error with `-Werror=uninitialized` in decent compilers.