C Fundamentals MCQs

303 questionsC-ProgramPage 23 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 199easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    unsigned int i = 23;
    signed char c = -23;
    if (i > c)
        printf("Yes\n");
    else if (i < c)
        printf("No\n");
}
Question 200easy
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);
}
Question 201easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    printf("C programming %s", "Class by\n%s Shyam", "WOW");
}
Advertisement
Question 202easy
function tolower(c) defined in library works for . . . . . . . .
Question 203easy
Associativity of an operator is . . . . . . . .
Question 204easy
What will be the output of the following C code?
#include <stdio.h>
void main(
{
    double b = 8;
    b++;
    printf("%lf", b);
}
Advertisement
Question 205easy
What will be the output of the following C code?
#include<stdio.h>
enum class
{
    a,b,c
};
enum class m;
main()
{
    printf("%d",sizeof(m));
}
Question 206easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int x = 97;
    int y = sizeof(x++);
    printf("x is %d", x);
}
Question 207easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 1, b = 1, c;
    c = a++ + b;
    printf("%d, %d", a, b);
}