I came across a line of code which looked a bit strange to me. It reads like this..
The above code is actually equivalent to
Actually c++ supports using assignments on the right hand side of assignments operator. And we are all familiar with that. I bet you must have seen assignments like this…
This and the previous code follows the same rule.
x= m * (n=7);
The above code is actually equivalent to
n=7
x=m*n
Actually c++ supports using assignments on the right hand side of assignments operator. And we are all familiar with that. I bet you must have seen assignments like this…
a=b=c;
This and the previous code follows the same rule.
No comments:
Post a Comment