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

Answer Posted / abhay kumar

if else checks for all he conditions where as switch
directly jump to specified case.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of c language?

622


Are local variables initialized to zero by default in c?

554


Does c have an equivalent to pascals with statement?

575


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1602


What happens if you free a pointer twice?

611






What is the difference between malloc() and calloc() function in c language?

605


How can you avoid including a header more than once?

567


How can I write a function that takes a format string and a variable number of arguments?

606


What are the types of data files?

730


What is #include conio h?

597


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

647


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

634


Write the syntax and purpose of a switch statement in C.

630


What is the purpose of realloc()?

673


What is the use of volatile?

611