πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
150
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate