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

Answer Posted / thiyagu.p

Simply saying, IF-ELSE can have values based on constraints
where SWITCH can have values based on user choice.

Is This Answer Correct ?    187 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does stand for?

582


What is optimization in c?

560


What are local static variables? How can you use them?

635


Explain how do you use a pointer to a function?

634


Explain how do you view the path?

644






Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1513


What is use of bit field?

762


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2238


what type of questions arrive in interview over c programming?

1545


Which header file should you include if you are to develop a function which can accept variable number of arguments?

795


What is pointer to pointer in c language?

583


What is the difference between functions getch() and getche()?

613


What is meant by realloc()?

666


Sir i need notes for structure,functions,pointers in c language can you help me please

1939


What is printf () in c?

574