Which bitwise operator is suitable for checking whether a particular bit is on o

Home | Discussion Forum

Which bitwise operator is suitable for checking whether a particular bit is on or off?

View More Related Question

1) A typecast is used to:

2) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = 3;
int l = i / -2;
int k = i % -2;
printf("%d %d\n", l, k);
return 0;
}

3) What is the output of this C code?

 #include <stdio.h>
void main()
{
int y = 3;
int x = 5 % 2 * 3 / 2;
printf("Value of x is %d", x);
}

4) Which among the following are the fundamental arithmetic operators, ie, performing the desired operation can be done using that operator only?

5) What would be the value of c?

 {
int c;
float a,b;
a=245.05;
b=40.02;
c=a+b;
}

UP Gk Online Test

taiyari24hour.com