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) 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);
}
2) Operator precedence determines which operator:
3) Consider the following program segment: main()
The correct values are:
{
int a,b,c;
b=3;
a=2;
a=2*(b++);
c=2*(++b);
}
4) What is the output of this C code?
#include <stdio.h>
void main()
{
int x = 0;
if (x = 0)
printf("Its zero\n");
else
printf("Its not zero\n");
}
5) What is the value of x in this C code?
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}