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

c program for searching a student details among 10 student details

1656


Explain the ternary tree?

603


Can math operations be performed on a void pointer?

589


What is typedef?

679


Explain the difference between the local variable and global variable in c?

605






Can a void pointer point to a function?

573


What is a pointer on a pointer in c programming language?

621


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3297


In which header file is the null macro defined?

857


What are the types of pointers in c?

531


What is assert and when would I use it?

581


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

712


What is structure in c language?

619


What does struct node * mean?

603


What is the difference between union and anonymous union?

835