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

Home | Discussion Forum
Taiyari24Hour

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



View More Related Question

2) What is the output of this C code?

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

3) Which of the following data type will throw an error on modulus operation(%)?

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) Consider the following program segment:

 main()
{
int a,b,c;
b=3;
a=2;
a=2*(b++);
c=2*(++b);
}
The correct values are:

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.