Q. What will be the output of the following C code?
Code:#include <stdio.h>
int main()
{
int a=0;
a=5||2|1;
printf("%d",a);
return 0;
}
β
Correct Answer: (A)
1
#include <stdio.h>
int main()
{
int a=0;
a=5||2|1;
printf("%d",a);
return 0;
}
You must be Logged in to update hint/solution