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

Answer Posted / subbu

Basically while coding developers prefer Switch rather than
If-Else.
But inturn switch gets transferred to IF-ELSe format during
compilation.

Is This Answer Correct ?    31 Yes 87 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can the sizeof operator be used to tell the size of an array passed to a function?

627


Sir i need notes for structure,functions,pointers in c language can you help me please

1957


Can true be a variable name in c?

565


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15065


What is build process in c?

654






general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

600


What is difference between structure and union with example?

605


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

620


What is boolean in c?

621


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

670


Is null always defined as 0(zero)?

623


Is c procedural or functional?

595


Not all reserved words are written in lowercase. TRUE or FALSE?

733


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

630


define string ?

677