Vidyalelo
C Programming · Q84

Control Structures

Programming · C Programming · question 84

Q84

What will be the output of the following C code? #include 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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board