Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Write code for a case statement.
Answer: switch (n)
{
case 1:
x=1;
break;
case 2:
x=2;
break;
default:
goto case 1;
}
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook