enumeration constant without typename

suggest change

Enumeration 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents