what is the different between if-else and switch statment
(other than syntax)

Answer Posted / kuldeep sadhu

actually if else is a cndition checking system but the
switch is a selection of user typed type......
& secondly switch does not check all cases but jump directly
on the user interested case but if checkes all.............

Is This Answer Correct ?    61 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array in c with example?

619


Explain about the constants which help in debugging?

858


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

731


Is main is user defined function?

601


What is action and transformation in spark?

600






Explain what happens if you free a pointer twice?

615


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

612


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

647


Explain how do you print an address?

661


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2338


Can we change the value of static variable in c?

568


What is an arrays?

658


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

649


What is %d used for?

589


What is meant by type specifiers?

663