Point out the error, if any, in the following program. main() { int i = 4, j = 2; switch(i) { case 1 : printf ('' To err is human, to forgive is against company policy."); break; case j : printf ('' if you have nothing to do, don't do it here."); break; } }

Correct Answer: Constant expression required in the second case, we cannot use j

More Questions from Programming

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion