Synopsis: | An array base type must not have function type. |
Language: | C |
Severity Level: | 2 |
Category: | DECLARATIONS |
Description: |
This leads to undefined behaviour.Arrays of pointers to functions are legal, however, so it probably was supposed to mean the following:
Example: int array[10](void); /* undefined */ int (*array[10])(void); /* probably this is meant */ |