what is the different between if-else and switch statment
(other than syntax)
Answer Posted / ailyn
Difference between switch - case and if - else is
we can't compare variables.
in the if - else, first the condition is verified,then it
comes to else whereas in the switch - case first it checks
the cases and then it switches to that particular case.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is sorting in c plus plus?
Difference between Function to pointer and pointer to function
What do you mean by recursion in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What does double pointer mean in c?
What is structure and union in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is the best way of making my program efficient?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
When should a type cast not be used?
Explain what math functions are available for integers? For floating point?
What is an auto keyword in c?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
string reverse using recursion