Find the correct output: int a = 10,b = 20; a ^= b; b ^= a; a ^= b; printf("%d %d", a, b);

Find the correct output:

int a = 10,b = 20; a ^= b; b ^= a; a ^= b;
printf("%d %d", a, b);
  1. a) 20 30
  2. b) 10 30
  3. c) 20 10
  4. d) Garbage Value

From the Combined Bank Senior Officer October 2021 – Preliminary exam, question 43 of 108.

More from this paper