Examveda
Examveda

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);
}

A. 6 -6 0 0

B. 6 -5 0 1

C. -6 -6 0 1

D. 6 -6 0 1

Answer: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals