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

Answer Posted / nabila

if else use only the statements that are in two condition

switch atatements use different cases

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 purpose of type declarations?

682


What are the __date__ and __time__ preprocessor commands?

575


What is an array in c?

598


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

714


What is a pointer in c plus plus?

698






What is %d called in c?

762


What do you understand by normalization of pointers?

628


What does c value mean?

630


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4180


What happens if header file is included twice?

656


hi send me sample aptitude papers of cts?

1655


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

589


What is a lookup table in c?

628


What is clrscr ()?

640


How many levels of pointers can you have?

706