A

Admin • 833K Points
Coach

Q. What is the result of this code?

Code:
int a = 7;
a = a & 3;
printf("%d", a);
  • (A) 1
  • (B) 3
  • (C) 2
  • (D) 7
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

7 & 3 = 0111 & 0011 = 0011 = 3

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.