Vidyalelo
C Programming · Q114

Control Structures

Programming · C Programming · question 114

Q114

What will be the output of the following C code? #include int main() int i = 0; char c = 'a'; while (i < 2) i++; switch (c) case 'a': printf("%c ", c); break; break; printf("after loop ");

A.
a after loop
B.
a a after loop
Answer
C.
after loop
D.
error

Answer: Option B

Solution

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