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

Answer Posted / lingaraj patra

Th switch structure is a multiple-selection structure that
allows the handling of even more complicated decision
statements other than a two-way if-else structure

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %d do in c?

547


Explain what is the use of a semicolon (;) at the end of every program statement?

738


Why is c called c?

633


What is const and volatile in c?

567


Why calloc is better than malloc?

573






I need previous papers of CSC.......plz help out by posting them.......

1818


What are the different file extensions involved when programming in C?

761


Why void main is used in c?

560


What functions are used for dynamic memory allocation in c language?

603


What are the rules for the identifier?

674


Explain how do you determine whether to use a stream function or a low-level function?

631


How do you use a 'Local Block'?

726


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1382


what is the basis for selection of arrays or pointers as data structure in a program

3789


Explain what are reserved words?

635