Re:Xmas.c, winner of the 1988 International Obfuscated C Cod...
by mananaysiempre on Monday December 25, 2023 @02:24AM
(#38760556)
> Are those consts really necessary?
Technically yes, initializing a plain char * from a const char * (from array decay) is a constraint violation (an error the standard requires the compiler to detect and complain about) even in C89. Many compilers will let you off with a warning though.
Technically yes, initializing a plain char * from a const char * (from array decay) is a constraint violation (an error the standard requires the compiler to detect and complain about) even in C89. Many compilers will let you off with a warning though.