what is the different between if-else and switch statment
(other than syntax)
Answer Posted / ahmed
in if else if one condition is satisfied then first
statement is execute else the 2nd statement.
While in switch their is multiple choice for selection
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
When should a type cast be used?
which type of aspect you want from the student.
How is a null pointer different from a dangling pointer?
How can my program discover the complete pathname to the executable from which it was invoked?
How would you obtain the current time and difference between two times?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are the different data types in C?
Describe the header file and its usage in c programming?
Why is this loop always executing once?
Explain what is the benefit of using an enum rather than a #define constant?
What are the different types of control structures in programming?
Under what circumstances does a name clash occur?
Explain what is output redirection?
What is a shell structure examples?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.