A

Admin • 833K Points
Coach

Q. What will be output for the following code?

Code:
#include <stdio.h>
int main()
{
int a = 1, b = 2;
int c = a ^ b & 1;
printf(""%d
"", c);
}
  • (A) 0
  • (B) 1
  • (C) 2
  • (D) 3
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.