Vidyalelo
C Programming · Q98

Control Structures

Programming · C Programming · question 98

Q98

What will be the output of the following C code? #include switch (ch) case 'a': case 'A': printf("true");

A.
if (ch == 'a' && ch == 'A') printf("true");
B.
if (ch == 'a')
if (ch == 'a') printf("true");
C.
if (ch == 'a' || ch == 'A') printf("true");
Answer
D.
none of the mentioned

Answer: Option C

Solution

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