C Interview Questions and Answers


Are enumerations really portable?

Are enumerations really portable? Aren't they Pascalish?

Enumerations were a mildly late addition to the language (they were not in K&R1),
but they are definitely part of the language now: they're in the C Standard,
and all modern compilers support them. They're quite portable, although historical
uncertainty about their precise definition led to their specification in the Standard
being rather weak

Posted by:Richards