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 do you use a pointer to a function?

629


How are structure passing and returning implemented?

588


hi any body pls give me company name interview conduct "c" language only

1663


What is c basic?

592


What is selection sort in c?

605






why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1514


Explain what is gets() function?

627


Can a program have two main functions?

567


What are the types of assignment statements?

627


What is size of union in c?

578


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

654


What does it mean when the linker says that _end is undefined?

625


ATM machine and railway reservation class/object diagram

4798


Explain the Difference between the New and Malloc keyword.

684


Are pointers integer?

545