Operators and Expressions MCQs

85 questionsC-ProgramPage 8 of 10

Practice free Operators and Expressions multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 85 questions — no login required.

Question 64easy
What will be the output of the following C code?
#include <stdio.h>
union temp
{
    char a;
    char b;
    int c;
}t;
int main()
{
    printf("%d", sizeof(t));
    return 0;
}
Question 65easy
Select the odd one out with respect to type?
Question 66easy
Predict the data type of the following mathematical operation?
2 * 9 + 3 / 2 . 0
Advertisement
Question 67easy
How many digits are present after the decimal in float value?
Question 68easy
What is the size of float in a 32-bit compiler?
Question 69easy
Which among the following is never possible as an output for a float?
Advertisement
Question 70easy
Size of an array can be evaluated by . . . . . . . .
(Assuming array declaration int a[10];)
Question 71easy
What type of value does sizeof return?
Question 72easy
Which among the following is never possible in C when members are different in a structure and union?
//Let P be a structure
//Let Q be a union