C Fundamentals MCQs

303 questionsC-ProgramPage 15 of 34

Practice free C Fundamentals 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 303 questions — no login required.

Question 127easy
When do you need to use type-conversions?
Question 128easy
What is the result of logical or relational expression in C?
Question 129easy
What is the precedence of arithmetic operators (from highest to lowest)?
Advertisement
Question 130easy
The format identifier '%i' is also used for . . . . . . . . data type.
Question 131easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 5;
    i = i / 3;
    printf("%d\n", i);
    return 0;
}
Question 132easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 2, y = 2;
    float f = y + x /= x / y;
    printf("%d %f\n", x, f);
    return 0;
}
Advertisement
Question 133easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int b = 5 + 7 * 4 - 9 * (3, 2);
    printf("%d", b);
}
Question 134easy
What is short int in C programming?
Question 135easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 10, b = 5, c = 3;
    b != !a;
    c = !!a;
    printf("%d\t%d", b, c);
}