1.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 3;
    int l = i / -2;
    int k = i % -2;
    printf("%d %d\n", l, k);
    return 0;
}

2.
What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
    int main = 3;
    printf("%d", main);
    return 0;
}

3.
What will be the output of the following C code?
#include<stdio.h>
#define MAX 4
enum Shyam
{
    a,b=3,c
};
main()
{
    if(MAX!=c)
        printtf("hello");
    else
        printf("welcome");
}

Read More Section(C Fundamentals)

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