C Fundamentals MCQs
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 253easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("Ram\rShyam\n");
return 0;
}Question 254easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
double b = 3 % 0 * 1 - 4 / 2;
printf("%lf", b);
}Question 255easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 1, y = 0, z = 5;
int a = x && y && z++;
printf("%d", z);
}Advertisement
Question 256easy
What will be the value of the following C expression?
(x = foo()) != 1 considering foo() returns 2Question 257easy
In expression i = g() + f(), first function called depends on . . . . . . . .
Question 258easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int h = 8;
int b = (h++, h++);
printf("%d%d\n", b, h);
}Advertisement
Question 259easy
When double is converted to float, then the value is?
Question 260easy
Which of the following keywords is used to define an alternate name for an already existing data type?
Question 261easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = -2;
x = x >> 1;
printf("%d\n", x);
}