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

23rd May 2020, 4:49 AM
SHIVANSHU BAJPAI
SHIVANSHU BAJPAI - avatar
0 ответов