#include <iostream> using namespace std; int getVal() { return 5; } int main() { int *a = &(getVal()); // your code goes here return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:11:21: error: lvalue required as unary ‘&’ operand int *a = &(getVal()); ^
Standard output is empty