81.
What will be the output of the following C code?
#include <stdio.h>
enum example {a = 1, b, c};
enum example example1 = 2;
enum example answer() 
{
    return example1;
}
 
int main()
{
   (answer() == a)? printf("yes"): printf("no");
   return 0;
}

82.
Point out the error (if any) in the following C code?
#include<stdio.h>
enum hello
{
    a,b,c;
};
main()
{
    enum hello m;
    printf("%d",m);
}

85.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int y = 1, x = 0;
    int l = (y++, x++) ? y : x;
    printf("%d\n", l);
}

89.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 0, y = 2;
    if (!x && y)
        printf("true\n");
    else
        printf("false\n");
}

Read More Section(C Fundamentals)

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