A
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);
}
int main()
{
int a = 1, b = 2;
int c = a ^ b & 1;
printf(""%d
"", c);
}
- Correct Answer - Option(B)
- Views: 21
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.