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
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is the use of a semicolon (;) at the end of every program statement?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Mention four important string handling functions in c languages .
Who invented bcpl language?
What standard functions are available to manipulate strings?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What does a function declared as pascal do differently?
Write a program to identify if a given binary tree is balanced or not.
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Explain what is the general form of a c program?
What is 1f in c?
Differentiate between ordinary variable and pointer in c.
What is the difference between %d and %i?