Appendix 3: Implementation Limits

 

Limit

Effect

More than 4095 characters in a string literal

Warning message

More than 127 levels of nested statements

Warning message

More than 1023 cases in a switch statement

Warning message

More than 511 identifiers declared in a block

Warning message

More than 65535 bytes in an object

Warning message

More than 2147483647 bytes in an array

Error

More than 1023 fields in a struct/union

Warning message

More than 1023 enumeration members

Warning message

More than 127 arguments to a function

Warning message

More than 4095 external identifiers

Warning message

More than 64 #if nesting levels

Error

More than 128 evaluation levels in #if directive

Error

More than 32 #include nesting levels

Error

More than 256 arguments to a macro

Error

More than 20 dimensions in a variable length array

Error