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 defines compile-time constants of type int. As in this example, such a constant can be used as an array length. The trailing comma is valid since C99.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents