c++ references | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers