Vidyalelo
C Programming · Q63

Control Structures

Programming · C Programming · question 63

Q63

What will be the output of the following C code? #include int main() int x = 97; switch (x) case 'a': printf("yes "); break; case 97: printf("no "); break;

A.
yes
B.
yes no
C.
Duplicate case value error
Answer
D.
Character case value error

Answer: Option C

Solution

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