Well the reference says, it is undefined. But how exactly the equation is executed? What is the value of "i" which is present in the middle of expression?
I got the answers for evaluation of "i",...
Type: Posts; User: anil_
Well the reference says, it is undefined. But how exactly the equation is executed? What is the value of "i" which is present in the middle of expression?
I got the answers for evaluation of "i",...
Hi All,
i have small problem in understanding the post and pre increments in c++. Could you please help me in understanding how exactly the equation is executed. Below is the code:
#include...
not an issue. :redface:
"Object Oriented Programming with C++ : M.P.Bhave and S.A. Patekar"
what confuses me is, there is an output text window with all the results. I have mailed to author asking for further...
ok, i think the text book is wrong.
In the book, he talks of changing the reference as an alias for another variable.
Any how i thank you all for this nice conversation we had. it was such a...
i agree with manasij7479 that it is not possible trying to play with 3 variables point to 2 addresses at the same time. It should be only two on two.
But in my case, y2 should be an alias to y1,...
y2 = y3;
But for the above code, the address of y3 is different from y2.
I need to change the address of y2 to be same as y3.
what should i do then..?
anil
ok i got the point...
Well.. i was trying to point the value of y3 to y2.
(That is how it is shown in text book sample code)
in the initial first statements, i have assigned the value of y1 to y2
int & y2 = y1;
...
Hi,
I had some of the issues referred to "lvalue required" in c++, but i could not find for my specific case.
I was trying to write a small code using "Type reference" concept.
Below is my...