News for hackers. Stuff that matters.
Re:Should you learn C to “learn how the computer works”? by x0re4x on Tuesday October 02, 2018 @07:33PM (#18126567)
stack_ret.c:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return new;
Re:Should you learn C to “learn how the computer works”? by Narishma on Wednesday October 03, 2018 @06:34AM (#18129005)
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?