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
Explain how do you determine the length of a string value that was stored in a variable?
Explain setjmp()?
Why is #define used?
What is hashing in c?
In which language linux is written?
What is the difference between %d and %i?
Explain about the functions strcat() and strcmp()?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is fflush() function?
Why is c fast?
What is data types?
What are the types of functions in c?
What is difference between %d and %i in c?
What is the return type of sizeof?
What does the && operator do in a program code?