Operators and Expressions MCQs

85 questionsC-ProgramPage 9 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 73easy
What will be the size of the following C structure?
#include <stdio.h>
struct temp
{
    int a[10];
    char p;
};
Question 74easy
What is the sizeof(void) in a 32-bit C?
Question 75easy
Which of the following cannot be used inside sizeof?
Advertisement
Question 76easy
Which data type is suitable for storing a number like?
10.0000000001
Question 77easy
In a 32-bit compiler, which 2 types have the same size?
Question 78easy
What will be the output of the following C code?
#include <stdio.h>
printf("%d", sizeof(strlen("HELLOWORLD")));
Advertisement
Question 79easy
What will be the output of the following C code?
#include <stdio.h>
printf("%.0f", 2.89);
Question 80easy
What is the sizeof(char) in a 32-bit C compiler?
Question 81easy
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));
}