I've been given some C++ code which is a method called clamp that returns a integer value. I've been asked to look at the stack in memory which i have and through disassembly i am suppose to be able to see the return values address in the stack. My disassembly and code
What am i meant to look for as i cant find any information online?
int& clamp(int& value, int low, int high) {
if (value < low)
return low;
if (value > high)
return high;
return value;
}
I've attached a picture of what i can see and what i believe to be the return values memory address which is red in the memory window. Above is the code for the method as well.