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
How does pointer work in c?
Is fortran faster than c?
Why is c called a structured programming language?
What do you mean by Recursion Function?
Explain what are the different data types in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is substring in c?
Why is struct padding needed?
Is it possible to pass an entire structure to functions?
What are different types of operators?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What language is windows 1.0 written?
What does typeof return in c?
What is a null pointer in c?
What are the features of c languages?