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 271easy
The following C code can be rewritten as . . . . . . . .
c = (n) ? a : b;Question 272easy
Which of the following is a User-defined data type?
Question 273easy
Which of the following declaration is illegal?
Advertisement
Question 274easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a = 'A';
char b = 'B';
int c = a + b % 3 - 3 * 2;
printf("%d\n", c);
}Question 275easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 10;
int *p = &i
printf("%d\n", *p++);
}Question 276easy
What will be the data type of the result of the following operation?
(float)a * (int)b / (long)c * (double)dAdvertisement
Question 277easy
Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
Question 278easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int p = 10, q = 20, r;
if (r = p = 5 || q > 20)
printf("%d", r);
else
printf("No Output\n");
}Question 279easy
Which of the following statement is false?