...
Code Block | ||
---|---|---|
| ||
char *init_array() { char array[10]; /* Initialize array */ return array; } |
Implementation Specific Details
On some compilers, compiling with sufficiently high Compiling with appropriate warning levels should will generate a warning when a local stack variable is returned from a function.
...