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


Please Help Members By Posting Answers For Below Questions

How can you tell whether a program was compiled using c versus c++?

613


What does a function declared as pascal do differently?

599


What is printf () in c?

574


hi send me sample aptitude papers of cts?

1646


What is the size of array float a(10)?

647






What is the use of structure padding in c?

555


When should structures be passed by values or by references?

575


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

649


Tell me can the size of an array be declared at runtime?

592


What are the salient features of c languages?

616


How do I use strcmp?

632


What is d scanf?

580


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1289


What are qualifiers and modifiers c?

539


how do you execute a c program in unix.

634