Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.
Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion

5 / 123

When is a switch statement better than multiple if statements?

Answer:

A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.

Asked In ::

Post Your Answer Here:


Rate This: +5 -0      +
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.