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

Compare interpreters and compilers.

635


What is floating point constants?

685


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

2703


p*=(++q)++*--p when p=q=1 while(q<=6)

1264


What functions are in conio h?

654






Write a program for Overriding.

680


Explain what is the benefit of using #define to declare a constant?

604


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1697


What’s a signal? Explain what do I use signals for?

603


what is event driven software and what is procedural driven software?

2009


What are the 4 types of organizational structures?

621


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1890


Why can arithmetic operations not be performed on void pointers?

586


Is a house a mass structure?

639


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

758