0
Can someone explain this code?
5 Answers
+ 3
I can not really explain it but I hope it gets clear if you get familiar with pointers.
About pointer:
https://www.sololearn.com/learn/CPlusPlus/1630/?ref=app
+ 3
Whenever you call x(var1, var2), var1 and var2 are passed as references to the function and their values are set to 3 and 4 respectively. Then the value of var1 is returned. I have no idea what statements like cout<<"while c=x(b,a)"<<endl; are supposed to do. There's no while loop involved in the code.
0
Here is your answer, Buddy!
https://code.sololearn.com/c5EkATk5g7Tq/?ref=app
0
Lucifer thanks a lot. Now I got it
0
Anna , it isn't while loop, I meant there when c=x (a, b)