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
Which one would you prefer - a macro or a function?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What is formal argument?
What are the types of data structures in c?
What is the auto keyword good for?
What does int main () mean?
What is the use of extern in c?
What do you mean by keywords in c?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How many keywords (reserve words) are in c?
What is malloc() function?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Differentiate between calloc and malloc.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Explain how can I manipulate strings of multibyte characters?