Which of the following is not logical operator?

Home | Discussion Forum
Taiyari24Hour

Which of the following is not logical operator?



View More Related Question

2) Consider the following program segment:

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

3) What will be the value of count after the following program is executed?

 main()
{
int count, digit=0;
count=1;
while(digit<=9)
{
printf("%d\n",++count);
++digit;
}
}

4) Consider the following statements:

 int a=2, b=3, c=4;
a=(b++) +c;
b=a+(++c);
What are the values of a, b and c, respectively?

5) What is the output of this C code?

#include <stdio.h>
void main()
{
char a = 'a';
int x = (a % 10)++;
printf("%d\n", x);
}

UP Gk Online Test

taiyari24hour.com

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