28th May 2019, 1:34 PM
#peace
#peace - avatar
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
28th May 2019, 6:59 PM
Denise Roßberg
Denise Roßberg - avatar
+ 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.
28th May 2019, 9:25 PM
Anna
Anna - avatar
29th May 2019, 3:00 AM
Mukarrabeen Khan
Mukarrabeen Khan - avatar
0
Lucifer thanks a lot. Now I got it
29th May 2019, 5:20 AM
#peace
#peace - avatar
0
Anna , it isn't while loop, I meant there when c=x (a, b)
29th May 2019, 5:21 AM
#peace
#peace - avatar