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
Can we use visual studio for c?
What is double pointer in c?
Explain the binary height balanced tree?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
How can I use a preprocessorif expression to ?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What are valid signatures for the Main function?
What is the default value of local and global variables in c?
How can I send mail from within a c program?
What does it mean when a pointer is used in an if statement?
The statement, int(*x[]) () what does in indicate?
What is the difference between text and binary i/o?
What are the various types of control structures in programming?
How can I remove the trailing spaces from a string?
What is difference between %d and %i in c?