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 are the advantages of the functions?
Are enumerations really portable?
What is c standard library?
Explain is it valid to address one element beyond the end of an array?
What is the difference between the expression “++a” and “a++”?
Explain the advantages of using macro in c language?
What is meant by int main ()?
What is static function in c?
What are multibyte characters?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Explain the priority queues?
code for find determinent of amatrix
What is a null string in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
The file stdio.h, what does it contain?