assignment | SoloLearn: Learn to code for FREE!

+3

assignment

x=y is similar to y=x??

8/28/2016 6:34:48 PM

sina massoumian

3 Answers

New Answer

+7

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.

+3

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

+1

thanks zen♡♡