92.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 2, y = 0;
    int z = y && (y |= 10);
    printf("%d\n", z);
    return 0;
}

95.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    if (7 & 8)
    printf("Honesty");
        if ((~7 & 0x000f) == 8)
            printf("is the best policy\n");
}

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

98.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 1, y = 2;
    if (x && y == 1)
        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.