5.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
   int a = 5, b = -7, c = 0, d;
   d = ++a && ++b || ++c;
   printf("\n%d%d%d%d", a,  b, c, d);
}

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

Read More Section(C Fundamentals)

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