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

What is the use of getchar() function?

895


How do I determine whether a character is numeric, alphabetic, and so on?

906


how to write optimum code to divide a 50 digit number with a 25 digit number??

3040


Differentiate between functions getch() and getche().

836


Why c is known as a mother language?

867


What do you mean by c?

819


What is typedef?

1046


Why c is called a mid level programming language?

868


Write a program to print factorial of given number without using recursion?

807


How can you check to see whether a symbol is defined?

863


What is c language and why we use it?

840


Why we not create function inside function.

1999


What does the message "automatic aggregate intialization is an ansi feature" mean?

954


What is wrong with this statement? Myname = 'robin';

1086


Create a simple code fragment that will swap the values of two variables num1 and num2.

1082