What is the major problem with this code?
reinterpret_cast can't convert int* to int
return operator must return pointer instead of reference
function attempts to return address of the local variable
function main must return integer, code don't compile
function must have int& as return type
C++ question 2
Next question
Home
The code does not make sense. Function returns reference to a variable declared inside the function.