C Language MCQ - English
Which of the following is not logical operator?
Answer : A
View More Related Question
1) In mathematics and computer programming, which is the correct order of mathematical operators ?
View Answer
2) Consider the following program segment: main()
The correct values are:
{
int a,b,c;
b=3;
a=2;
a=2*(b++);
c=2*(++b);
}
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;
What are the values of a, b and c, respectively?
a=(b++) +c;
b=a+(++c);
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);
}