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?
&& operator
& operator
|| operator
| operator
Answer : D
View More Related Question
1) Which of the following data type will throw an error on modulus operation(%)?
2) 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);
}
3) A typecast is used to:
Define a new datatype
Force a value to be of a particular variable type
Rename an old type
None of these
View Answer
4) What is the output of this C code?
#include <stdio.h>
void main()
{
char a = 'a';
int x = (a % 10)++;
printf("%d\n", x);
}
5) Which among the following are the fundamental arithmetic operators, ie, performing the desired operation can be done using that operator only?