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

Answer Posted / kuldeep sadhu

actually if else is a cndition checking system but the
switch is a selection of user typed type......
& secondly switch does not check all cases but jump directly
on the user interested case but if checkes all.............

Is This Answer Correct ?    61 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What tq means in chat?

575


Differentiate between the expression “++a” and “a++”?

693


What is bin sh c?

576


What is string function in c?

529


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1582






Differentiate call by value and call by reference?

560


Why is c called a structured programming language?

667


Can the curly brackets { } be used to enclose a single line of code?

709


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1510


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2385


What are header files and what are its uses in C programming?

624


Why do we use null pointer?

599


What is the concatenation operator?

602


What are the different types of linkage exist in c?

605


What does the error message "DGROUP exceeds 64K" mean?

720