P
pemo
Could someone tell me if I have this right please?
Given this definition:
void someFunc(char a[static 10]){}
The 'static' says that a[] will not be a NULL pointer, and will always
*[at-least/at-most?]* 10 elements.
And, this is an illgal prototype?
void someFunc(char a[static]);
Would the *only* legal prototype be:
void someFunc(char a[static 10]);
Also,
void someOtherFunc(char a[static]) {} - no size, this is illegal?
void anotherFunc(char a[static *]); - illegal prototype?
Given this definition:
void someFunc(char a[static 10]){}
The 'static' says that a[] will not be a NULL pointer, and will always
*[at-least/at-most?]* 10 elements.
And, this is an illgal prototype?
void someFunc(char a[static]);
Would the *only* legal prototype be:
void someFunc(char a[static 10]);
Also,
void someOtherFunc(char a[static]) {} - no size, this is illegal?
void anotherFunc(char a[static *]); - illegal prototype?