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
370 views
asked 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 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 by rock Expert (14,990 points)

Related questions

0 votes
1 answer 36 views
36 views asked by sunny Expert (11,410 points)
0 votes
1 answer 25 views
0 votes
1 answer 7 views
0 votes
1 answer 13 views
...