|
|
|
|
|
by kps
4847 days ago
|
|
int x = 'FOO!';
will not make demons fly out of your nose: it is not undefined behaviour. It is guaranteed to produce a value; the specific value is implementation defined (that is, one that the compiler vendor has decided and documented), but it is an integer value, not a demon value.I'm sure, though, that someone sooner or later will be bitten by code like int x = 'é';
which is equally implementation-defined. |
|
int x = 'RIFF';
.. if you were packing a WAVE file header.