C Language MCQ - English
Which bitwise operator is suitable for turning on a particular bit in a number?
Home | Discussion ForumWhich bitwise operator is suitable for turning on a particular bit in a number?
Answer : D
View More Related Question
1) What is the output of this C code?
#include <stdio.h>
int main()
{
int x = 2, y = 1;
x *= x + y;
printf("%d\n", x);
return 0;
}
2) What should be the value of i and k at the end of the following program segments? int i,j,k;
{
j=5;
i=2*j/2;
k=2*(j/2);
}
3) What is the output of this C code?
#include <stdio.h>
int main()
{
int a = 10, b = 5, c = 5;
int d;
d = a == (b + c);
printf("%d", d);
}
4) Operator precedence determines which operator:
5) Consider the following program fragment: main()
Which one of the given answers in correct?
{
int a,b,c;
b=2;
a=2*(b++);
c=2*(++b);
}