2.1 Assignment Operator
ā§¨.ā§§ āĻ
ā§āĻ¯āĻžāĻ¸āĻžāĻāĻ¨āĻŽā§āĻ¨ā§āĻ āĻ
āĻĒāĻžāĻ°ā§āĻāĻ° (ā§§)
[1] āĻĻā§āĻāĻāĻŋ āĻā§āĻ¯āĻžāĻ°āĻŋā§ā§āĻŦāĻ˛ āĻāĻ° āĻŽāĻžāĻ¨ āĻĒāĻ°āĻ¸ā§āĻĒāĻ° āĻ¸ā§āĻĨāĻžāĻ¨ āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻāĻ°āĨ¤ ({a=1, b=2} -> {a=2, b=1})
āĻ¸āĻŽāĻžāĻ§āĻžāĻ¨
[1] āĻĻā§āĻāĻāĻŋ āĻā§āĻ¯āĻžāĻ°āĻŋā§ā§āĻŦāĻ˛ āĻāĻ° āĻŽāĻžāĻ¨ āĻĒāĻ°āĻ¸ā§āĻĒāĻ° āĻ¸ā§āĻĨāĻžāĻ¨ āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻāĻ°āĨ¤ ({a=1, b=2} -> {a=2, b=1})
Sample Input
Sample Output
1 2
Before Swap: a = 1, b = 2
After Swap: a = 2, b = 1
2 4
Before Swap: a = 2, b = 4
After Swap: a = 4, b = 2
Last updated