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
Why c language is called c?
Can a file other than a .h file be included with #include?
What are enumerated types?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is multidimensional arrays
Where is c used?
What is the right way to use errno?
Can you write the function prototype, definition and mention the other requirements.
What is a program?
Write a program to use switch statement.
What is the difference between #include and #include 'file' ?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is malloc and calloc?
What is define c?
What is a macro in c preprocessor?