C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

4. Which statement is used to replace multiple if-else statements in code?

0 votes
357 views
asked Feb 24, 2014 by john Guru (27,140 points)

2 Answers

0 votes
In Visual Basic, the Select-Case statement is used to replace multiple If - Else statements and in C#, the switch-case statement is used to replace multiple if-else statements.
 
answered Feb 24, 2014 by sara Guru (24,570 points)
0 votes
A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.
answered Apr 8, 2014 by rock Expert (14,990 points)

Related questions

0 votes
1 answer 34 views
34 views asked Apr 24, 2014 by sunny Expert (11,410 points)
0 votes
1 answer 23 views
0 votes
1 answer 55 views
0 votes
1 answer 6 views
6 views asked May 8, 2014 by rock Expert (14,990 points)
0 votes
1 answer 12 views
12 views asked May 8, 2014 by rock Expert (14,990 points)
...