+ 3
Doubt
someone please explain what the below expression means x,y=y,x
3 Respostas
+ 9
It is the same as
temp = x
x=y
y=temp
nice and compact
afterwards new x = the old y
and new y = old x
+ 8
👍
+ 2
@Louis
so it means just swaping of values. ryt??
ok thanks louis