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 is a pragma?

906


C program to find all possible outcomes of a dice?

2110


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

936


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

871


Why we use break in c?

790


List some basic data types in c?

791


What is struct node in c?

847


Explain the properties of union. What is the size of a union variable

952


What is d scanf?

822


What is int main () in c?

892


What is string in c language?

861


Explain what are header files and explain what are its uses in c programming?

907


Do you know what are the properties of union in c?

823


What are the types of data types and explain?

886


What is an lvalue?

863