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 145easy
The keyword typedef cannot be used to give alias names to pointers.
Question 146easy
What will be the output of the following C code if the code is executed on a 32 bit platform?
#include <stdio.h>
enum India
{
c = 0,
d = 10,
h = 20,
s = 3
} a;
int main()
{
a = c;
printf("Size of enum variable = %d bytes", sizeof(a));
return 0;
}Question 147easy
What will be the output of the following C function?
#include <stdio.h>
int main()
{
reverse(1);
}
void reverse(int i)
{
if (i > 5)
exit(0);
printf("%d\n", i);
return reverse(i++);
}Advertisement
Question 148easy
What will be the output of the following C code?
#include<stdio.h>
enum India
{
a=1,b,c,d,e
};
int main()
{
printf("%d",b*c+e-d);
}Question 149easy
C99 standard guarantees uniqueness of . . . . . . . . characters for external names.
Question 150easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = -5;
int k = (a++, ++a);
printf("%d\n", k);
}Advertisement
Question 151easy
Which of the following operators has the lowest precedence?
Question 152easy
Are logical operator sequence points?
Question 153easy
Which expression has to be present in the following?
exp1 ? exp2 : exp3;