3 ms·
The #if does more than just text and tokens, it has an expression grammar (constant-expression). It's implementation-defined whether the following two produce t
by WalterBright 7y ago
The #if does more than just text and tokens, it has an expression grammar (constant-expression). It's implementation-defined whether the following two produce the same value:
#if 'z' - 'a' == 25
if ('z' - 'a' == 25)
Another difference is all constants are typed as intmax_t and uintmax_t, not the usual C types. Yes, it does have types.
This difference in behavior from C expressions is not necessary.