Home » Technical Questions » Programming

Point out the error, if any, in the following program. main() { int i = 4, j = 2; switch(i) { case 1 : printf (''\n To err is human, to forgive is against company policy."); break; case j : printf (''\n 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

← Previous Question Next Question→

More Questions from Programming

Discussion & Comments

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