...
Code Block | ||
---|---|---|
| ||
char *func() { char a[10] ; /* Operate on a */ return &a[0]; } |
Compiling with appropriate warning levels should generate a warning when a local stack variable is returned from a function.
...
...
Code Block | ||
---|---|---|
| ||
char *func() { char a[10] ; /* Operate on a */ return &a[0]; } |
Compiling with appropriate warning levels should generate a warning when a local stack variable is returned from a function.
...