[Solved] How to change the local variable without its reference
This approach is hacky and fragile, but that interviewer is asking for it. So here’s an example for why C and C++ are such fun languages: // Compiler would likely inline it anyway and that’s necessary, because otherwise // the return address would get pushed onto the stack as well. inline void func() { // … Read more