assignment | Sololearn: Learn to code for FREE!



x=y is similar to y=x??

8/28/2016 6:34:48 PM

sina massoumian

3 Answers

New Answer


They are not the same. x=y means that you assign the value of y to x, and y=x means you assign the value of x to y. On the other hand, x==y (checking for equality) is equivalent to y==x.


no it's not true for example: x=3 , y=5 if x=y then => x=5,y=5 but if y=x then => x=3 ,y=3


thanks zen♡♡