What is the output of this C code ?
[pastacode lang=”c” manual=”Function%20main()%20%7B%0A%20%20integer%20a%20%3D%205%2C%20b%20%3D%207%0A%20%20Switch(a)%20%7B%0A%20%20%20%20Case%205%3A%20print%20%22I%20am%205%22%0A%20%20%20%20Break%0A%20%20%20%20Case%20b%3A%20print%20%22I%20am%20not%205%22%0A%20%20%20%20Break%0A%20%20%20%20Default%3A%20print%20%22I%20am%20different%22%0A%20%20%7D%0A%7D” message=”” highlight=”” provider=”manual”/]A. I am 5
B. I am not 5
C. I am different
D. Error
E. None of these
Answer : D. Error
Explanation:
- Break doesn’t have “;” (Semi Colon missing in break command)
