Post

Pigeon Pot Pies
Pigeon Pot Pies@pigeonpotpies·
@Python_Dv A. a, b = 1, 0 variables a and b are assigned the values 1 and 0, respectively. a = b = a ^ b a ^ b results in 1. a=b = 1 Assigns the result (1) to the variable a and b. a = a ^ b = 0 a=0
English
0
0
0
225
Rakesh Das
Rakesh Das@RakeshDas_18·
@Python_Dv A. 0 is the output. Reason: 1. Initially, a and b are set to 1 and 0, respectively. 2. The expression a ^ b evaluates to 1 (bitwise XOR). 3. Both a and b are assigned this value (both become 1). 4. Finally, a is updated to 0 (bitwise XOR with b). Therefore, the output is 0.
English
0
0
0
115
Paylaş