what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sanjay parmar sirsa
If-else
we depand the condition
if condition true then true block will be excuted
else
false block will be excuted
switch have number of choice we can excute any choice
| Is This Answer Correct ? | 21 Yes | 6 No |
Post New Answer View All Answers
swap 2 numbers without using third variable?
What is meant by int main ()?
What type is sizeof?
How many parameters should a function have?
Explain how can you avoid including a header more than once?
How can I avoid the abort, retry, fail messages?
What is the difference between c &c++?
how can f be used for both float and double arguments in printf? Are not they different types?
define string ?
What does stand for?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What language is windows 1.0 written?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is register variable in c language?
Is javascript written in c?