Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    if (printf("%d", printf(")))
        printf("We are Happy");
    else if (printf("1"))
        printf("We are Sad");
}

A. 0We are Happy

B. 1We are Happy

C. 1We are Sad

D. compile time error

Answer: Option D


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures