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
What are the general description for loop statement and available loop types in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is const and volatile in c?
Write a function that will take in a phone number and output all possible alphabetical combinations
Why should I prototype a function?
What is a rvalue?
Why is c so important?
praagnovation
What is nested structure?
Explain what is the use of a semicolon (;) at the end of every program statement?
How many types of sorting are there in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is volatile variable in c with example?
What are keywords in c with examples?
Explain the term printf() and scanf() used in c language?