C Language MCQ - English
Which bitwise operator is suitable for turning off a particular bit in a number?
Home | Discussion ForumWhich bitwise operator is suitable for turning off a particular bit in a number?
&& operator
& operator
|| operator
! operator
Answer : B
View More Related Question
1) What is the output of this C code?
#include <stdio.h>
int main()
{
int i = -3;
int k = i % 2;
printf("%d\n", k);
}
2) What is the output of this C code?
#include <stdio.h>
int main()
{
int x = 2, y = 2;
x /= x / y;
printf("%d\n", x);
return 0;
}
3) Pick up the odd one out from the following
4) 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);
}
5) In mathematics and computer programming, which is the correct order of mathematical operators ?
Addition, Subtraction, Multiplication, Division
Division, Multiplication, Addition, Subtraction
Multiplication, Addition, Division, Subtraction
Addition, Division, Modulus, Subtraction
View Answer