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

Answer Posted / ahmed

in if else if one condition is satisfied then first
statement is execute else the 2nd statement.
While in switch their is multiple choice for selection

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

praagnovation

1780


What is a stream water?

659


What is union and structure?

575


Explain what happens if you free a pointer twice?

614


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1455






What's the best way of making my program efficient?

628


How do you list files in a directory?

564


Is there a way to switch on strings?

622


Explain what are the different data types in c?

761


What is define c?

575


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1432


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

734


What is dynamic memory allocation?

812


What is advantage of pointer in c?

696


How many data structures are there in c?

619