C Fundamentals MCQs

303 questionsC-ProgramPage 10 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 82easy
Which of the following is a ternary operator?
Question 83easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 2;
    if (a >> 1)
       printf("%d\n", a);
}
Question 84easy
What will be the output of the following C code?
#include <stdio.h>
int const print()
{
    printf("example.com");
    return 0;
}
void main()
{
    print();
}
Advertisement
Question 85easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    double b = 3 && 5 & 4 % 3;
    printf("%lf", b);
}
Question 86easy
Operation "a = a * b + a" can also be written as . . . . . . . .
Question 87easy
Which of the following is an invalid assignment operator?
Advertisement
Question 88easy
Which of the following are unary operators?
Question 89easy
Which of the following data type will throw an error on modulus operation(%)?
Question 90easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int x = 0, y = 2, z = 3;
    int a = x & y | z;
    printf("%d", a);
}
C Fundamentals MCQs with Answers & Solutions — C-Program | GrabStudy