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 is the difference between test design and test case design?

1583


What is #include conio h?

605


What is sizeof int?

646


What is an identifier?

635


How does #define work?

660






What do you mean by a sequential access file?

637


What header files do I need in order to define the standard library functions I use?

545


write an algorithm to display a square matrix.

2236


What does stand for?

611


How do you declare a variable that will hold string values?

678


Write a program to check armstrong number in c?

644


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2255


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1502


In C, What is the #line used for?

1085


What do you mean by dynamic memory allocation in c?

658