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

Answer Posted / sujoy dutta

we can use all varriables within if else.but we can't use
all verriables within switch case.example :-float and
String we can't use within switch case.

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1715


Who developed c language?

865


What is void pointers in c?

786


What is operator promotion?

829


What are variables and it what way is it different from constants?

1023


Is it cc or c in a letter?

775


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1705


Explain continue keyword in c

784


What are the restrictions of a modulus operator?

868


What is wrong with this declaration?

846


What is ambagious result in C? explain with an example.

2315


Why do we use return in c?

752


What are nested functions in c?

789


What is the auto keyword good for?

836


What are comments and how do you insert it in a C program?

992