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

58.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    double x = 123828749.66;
    int y = x;
    printf("%d\n", y);
    printf("%lf\n", y);
}

60.
What will be the output of the following C code?
#include<stdio.h>
enum Ram
{
    a=1,b
};
enum Shyam
{
    c,d
};
int main()
{
    enum Shyam s1=c;
    enum Shyam s=a;
    enum Ram s2=d;
    printf("%d",s);
    printf("%d",s1);
    printf("%d",s2);
}

Read More Section(C Fundamentals)

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