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

Answer Posted / srinivasa reddy

Internally IF-ELSE implements Linear search, where as
SWITCH implements Binary search.

Is This Answer Correct ?    35 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you print an address?

661


What is boolean in c?

615


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

750


Is that possible to store 32768 in an int data type variable?

694


What is preprocessor with example?

593






What is bss in c?

609


Why do some versions of toupper act strangely if given an upper-case letter?

636


C program to find all possible outcomes of a dice?

1859


Explain what standard functions are available to manipulate strings?

615


What are static variables in c?

631


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...

1493


How do you sort filenames in a directory?

719


Can 'this' pointer by used in the constructor?

617


What is the scope of static variables in c language?

634


What is a stream in c programming?

598