Which bitwise operator is suitable for turning on a particular bit in a number?

Home | Discussion Forum
Taiyari24Hour

Which bitwise operator is suitable for turning on a particular bit in a number?



View More Related Question

1) Consider the following program segment:

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

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

3) What is the output of this C code?

#include <stdio.h>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf("%d", c);
}

4) What is the output of this C code?

#include <stdio.h>
void main()
{
unsigned int x = -5;
printf("%d", x);
}

5) The operator && in 'C' language is a (n):

UP Gk Online Test

taiyari24hour.com

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