Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
x0re4x
· 8y ago · 0 comments
stack_ret.c:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return new;
Comments
[–]
Narishma
8y ago
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?