24 ms·
If you return a pointer from a function that points to a stack local variable, it'll be invalid. Generally this is easy ish to detect though.
by habitue 2y ago
If you return a pointer from a function that points to a stack local variable, it'll be invalid. Generally this is easy ish to detect though.
- EVa5I7bHFq9mnYK 2y agoIn this stack only scheme there are no pointers. Function leaves its returned data at the top of the stack.