S
Serve Laurijssen
A question about this C99 feature.
suppose I have a function
void f(int x[static 10]);
and I call it with
int *x = malloc(20 * sizeof(int));
f(x);
Should a compiler emit a warning then or fail?
What if it's called with int x[20]; ? Is there a difference?
suppose I have a function
void f(int x[static 10]);
and I call it with
int *x = malloc(20 * sizeof(int));
f(x);
Should a compiler emit a warning then or fail?
What if it's called with int x[20]; ? Is there a difference?