Microsoft – Visual C++ :- Compilation – Warning – warning C4172: returning address of local variable or temporary

Background Ran into a compiler warning while compiling a simple C application. Error Error Text Error Image Research StackOverflow warning: function returns address of local variable [enabled by default] [duplicate] Link https://stackoverflow.com/questions/17312336/warning-function-returns-address-of-local-variable-enabled-by-default  ( Link ) Code Here is the cited code :- Image Text Question This yields: ...and i can't figure out what is wrong … Continue reading Microsoft – Visual C++ :- Compilation – Warning – warning C4172: returning address of local variable or temporary