what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sherin
There are some things that you simply cannot do with a
switch. These are:
A float expression cannot be tested using a switch
Cases can never have variable expressions (for example it is
wrong to say case a +3 : )
Multiple cases cannot use same expressions.
| Is This Answer Correct ? | 17 Yes | 7 No |
Post New Answer View All Answers
What does void main () mean?
What is a ternary operator in c?
Why do we use static in c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is const volatile variable in c?
What is the process of writing the null pointer?
How can I change the size of the dynamically allocated array?
Explain how can I convert a number to a string?
What is the use of gets and puts?
Is there a way to switch on strings?
How are Structure passing and returning implemented by the complier?
What is file in c language?
What is a constant?
Can we declare a function inside a function in c?
If the size of int data type is two bytes, what is the range of signed int data type?