MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iijaf5e
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
Show parent comments
17
swaps a b to b a
9 u/DerKnerd Aug 01 '22 edited Aug 01 '22 Yes. And now this:c = b b = a a = c 2 u/[deleted] Aug 01 '22 makes c into old bmakes b into old amakes a into old b 1 u/DerKnerd Aug 01 '22 Exactly. 1 u/eimattz Aug 01 '22 c = bb = aa = a
9
Yes. And now this:
c = b b = a a = c
2 u/[deleted] Aug 01 '22 makes c into old bmakes b into old amakes a into old b 1 u/DerKnerd Aug 01 '22 Exactly. 1 u/eimattz Aug 01 '22 c = bb = aa = a
2
makes c into old b
makes b into old a
makes a into old b
1 u/DerKnerd Aug 01 '22 Exactly.
1
Exactly.
c = bb = aa = a
17
u/a-slice-of-toast Aug 01 '22
swaps a b to b a