0 votes 0 votes Consider the following sequence of instructions : $a= a \oplus b, b= a \oplus b, a= b \oplus a$ This Sequence retains the value of the $a$ and $b$ complements the value of $a$ and $b$ swap $a$ and $b$ negates values of $a$ and $b$ Others ugcnetcse-dec2005-paper2 + – go_editor asked Mar 27, 2020 • edited May 12, 2021 by soujanyareddy13 go_editor 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes a=a⨁b b=a⨁b a= b⨁a Let, a=1, b=0 a= 1⨁ 0= 1=> a=1 b= 1⨁ 0=1 => b=1 a= 1⨁1= 0=> a=0 Hence, a=0, b=1. It can be seen that above statements swap the values of a and b. Jagat_Jyoti answered Jun 15, 2021 Jagat_Jyoti comment Share Follow See all 0 reply Please log in or register to add a comment.