+ 3

assignment

x=y is similar to y=x??

28th Aug 2016, 6:34 PM
sina massoumian
sina massoumian - avatar
3 Réponses
+ 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.
28th Aug 2016, 6:43 PM
Zen
Zen - avatar
+ 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
31st Aug 2016, 9:58 AM
Jonaid Shianifar
Jonaid Shianifar - avatar
+ 1
thanks zen♡♡
28th Aug 2016, 7:16 PM
sina massoumian
sina massoumian - avatar