Hacker News new | ask | show | jobs
by x0re4x 2812 days ago
stack_ret.c:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return new;
1 comments

Why is this a warning and not an error? Are there situations in which you would want to return the address of a local variable?