Vidyalelo
C Programming · all questions

Operators and Expressions
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

85

Questions

5/5

Page

Pick an option on a question to see the right answer and solution.

What will be the output of the following C code?
#include <stdio.h>
(sizeof double = 8, float = 4, void = 1)
#define PI 3.14
int main()
{
    printf("%d", sizeof(PI));
}

Select an option to see the answer and solution.

What will be the output of the following C code?
#include <stdio.h>
main()
{
    int a = 1;
    printf("size of a is %d, ", sizeof(++a));
    printf("value of a is %d", a);
};

Select an option to see the answer and solution.

Which of the following is not an operator in C?

Select an option to see the answer and solution.

%lf is used to display?

Select an option to see the answer and solution.

Which among the following is never possible in C when members in a structure are the same as that in a union?
//Let P be a structure
//Let Q be a union

Select an option to see the answer and solution.