what is the different between if-else and switch statment
(other than syntax)
Answer Posted / vikky
expressions cannot be used as arguments in switsh, but in
if else any kind of exp can be used...
in the case of checkin a single variable for several values
SWITCH is the BEST.
in all other cases if else holds gud.
| Is This Answer Correct ? | 36 Yes | 20 No |
Post New Answer View All Answers
What is file in c language?
What is a keyword?
What is queue in c?
What is string concatenation in c?
What is string length in c?
cavium networks written test pattern ..
What is the difference between mpi and openmp?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is 'bus error'?
What is the size of structure in c?
Explain the use of 'auto' keyword in c programming?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
int far *near * p; means
When should you not use a type cast?
Write a program to swap two numbers without using the third variable?