&c – Is the address of c. foo returns a pointer to this local variable – c.
This is bad and should not be done – as c will be out of scope – hence its address will be invalid
solved what does int* foo (int a) return in c++ [closed]
 
&c – Is the address of c. foo returns a pointer to this local variable – c.
This is bad and should not be done – as c will be out of scope – hence its address will be invalid
solved what does int* foo (int a) return in c++ [closed]