11.
What will be the output of the following C code?
#include <stdio.h>
    int main()
    {
        int y = 10000;
        int y = 34;
        printf("Hello World! %d\n", y);
        return 0;
    }

12.
Which of the following is NOT possible with any 2 operators in C?

15.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int x = 5.3 % 2;
    printf("Value of x is %d", x);
}

16.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int const k = 5;
    k++;
    printf("k is %d", k);
}

20.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    const int i = 10;
    int *ptr = &i;
    *ptr = 20;
    printf("%d\n", i);
    return 0;
}

Read More Section(C Fundamentals)

Each Section contains maximum 100 MCQs question on C Fundamentals. To get more questions visit other sections.