Enumerated types... what's the point?

Ken Buck buck at granite.cr.bull.com
Fri Mar 23 22:35:05 AEST 1990


Another point of 'enum' types is visibility.  Use of #define results in a
definition with file scope, while an enum type definition can have the same
scope as any other object (i.e., can be defined within a function or block).



More information about the Comp.lang.c mailing list