C const identifiers and constant expressions
Falk Hueffner
falk@debian.org
Tue Mar 22 09:57:00 GMT 2005
Michael Winslow <liandril@yahoo.com> writes:
> Is there some way short of resorting to preprocessor macros to tell
> the compiler that an identifier is a compile-time constant, and is
> therefore suitable for use in sizing an array?
You can use an enum value. But there's little point in that; a
preprocessor macro will do just fine and is more idiomatic.
--
Falk
More information about the Gcc-help
mailing list