enumeration constant without typename
suggest changeEnumeration types can also be declared without giving them a name:
enum { buffersize = 256, };
static unsigned char buffer [buffersize] = { 0 };
This enables us to define compile time constants of type int
that can as in this example be used as array length.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents