0
c++ references
#include<iostream> using namespace std; int &fun() { int x = 10; return x; } int main() { fun() = 30; cout << fun(); return 0; } can't figure out what's wrong with this code can anyone please tell me what's the error
0 Answers
#include<iostream> using namespace std; int &fun() { int x = 10; return x; } int main() { fun() = 30; cout << fun(); return 0; } can't figure out what's wrong with this code can anyone please tell me what's the error