Sign Up | Sign In
Ask Questions & Get Answers at ibibo sawaal

wt is the major difference b/t if-else-if and switch statments  

Asked in Computers & Technology at 11:30 AM on April 17, 2008

Tags: major difference if-else-if switch statments

Report abuse
pakeeza ch
pakeeza ch

Related Search

 

wt is the major difference b/t if-else-if and switch statments

have much of a choice....if else statemat is use when we have specific conditions and switch statement is used when we have many conditions,nice question .......Well,The major difference B/T if-else-if if-else-if and switch are conditional statements, they differ a lot in the way they are used.Some of the major differences between the two are :1 In if-else-if , an expression is evaluated and the code

Posted in Computers & Technology by pakeeza ch at 5:00 PM on April 17, 2008

comparison between if-else-if and switch structure

Well Madiha, although both if-else-if and switch are conditional statements, they differ a lot in the way they are used.Some of the major differences between the two are :1 In if-else-if , The variables in the expression may evaluate to a value of any type, either an int or a char. In switch , The expression must evaluate to an int.4 There is one subtle but very important difference between the if-else-if

Posted in Computers & Technology by madiha.bttg at 4:00 PM on April 16, 2008

differenciate between if-else-if and switch statments?

Well Pakeeja , although both if-else-if and switch are conditional statements, they differ a lot in the way they are used.Some of the major differences between the two are :1 In if-else-if , The variables in the expression may evaluate to a value of any type, either an int or a char. In switch , The expression must evaluate to an int.4 There is one subtle but very important difference between the if-else-if

Posted in Computers & Technology by pakeeza ch at 3:38 PM on April 16, 2008

differenciate between if-else-if and switch statments?wt is difference b/t ifelseif and switch statments?

if-else-if sees that ifcond is true then it comes inside the loop if cond is false it comes to another ifcondlike wise it searches for true condition.but with swith we can see multiple cases

Posted in Books & Authors by pakeeza ch at 3:34 PM on April 16, 2008
Tags pakeeza

Comparison between if-else-if and switch structure?

of statements are executed. The else clause is optional. The general form of if else statement is:-ifexpressionstatement; else ifexpressionstatement; else statement;The switch statement is very similar to the if-else-if; break; // More cases may follow default statementX or blockX In the switch construct, as in the if-else-if construct, multiple possible blocks of code are being selected from, and only one of them

Posted in Computers & Technology by misbah at 7:11 PM on April 16, 2008

comparison between if-else-if and switch statments

of the break reserved word.The if-else-if and the switch structures have very similar usage in a program, but there are distinct differences. These differences are given below.1.An expression is evaluated;The switch statement is very similar to the if-else-if ladder of selection statements. Here is its general form:switchexpression case constant1: statement1 or block1;break; case constant2: statement2 or block

Posted in Computers & Technology by pakeeza ch at 4:01 PM on April 16, 2008

Similar Questions

Left Ads
© 2006 - 2013 ibibo Web Pvt Ltd. All rights reserved.