A
Q. What will be the output of the following code?
Code:
#include <stdio.h>
int main() {
int a = 10, b = 20;
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("%d %d", a, b);
return 0;
}
int main() {
int a = 10, b = 20;
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("%d %d", a, b);
return 0;
}
- Correct Answer - Option(B)
- Views: 28
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.