answersLogoWhite

0

The switch statement evaluates an expression, which must have an integral result. Based on that result, a branch is taken to one of the case statements, or to the default statement if present and none of the case statements match.

Note that the case statement represents a "goto" type of operation. If it is intended that each case execute without executing the following case statement(s), then each case must include a break statement.

The if-else statement evaluates an expression, which must have a logical result. If the result is true, the first target statement executes - if false, the second target statement executes.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Difference between TPN switch and TP and N switch?

no difference whatsoever


What is the difference between C and advanced C?

The difference between C and the advanced C is that C is basic. On the other hand, the advanced C is thorough and to the detail.


Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.


Difference between tandem switch and long distance switch?

go to www.howstuffworks.com


What is the difference between proxy switch sensor?

What_is_the_difference_between_proxy_switch_sensor


What is the difference between c c?

ketchup!


What is the difference between 28C and 25C?

The difference between 28°C and 25°C is 3°C. This means that 28°C is 3 degrees warmer than 25°C.


What are difference between grade a b and c material?

The main difference is in between grade A,B & C IS THE CARBON CONTAIN OF THE MATERIALS.


What is the difference between load break switch and ht switch fuse unit?

Both are same...


What is the difference between 134 C and -170 C?

the answer is 304C


What is the difference between object and variable in c?

There is no objects in C.


What is difference between select Case statement and nested loop in c programming in UNIX?

UNIX has no bearing on the C language; it is cross-platform. There is no select/case in C, you probably meant switch/case. However, a switch/case is a conditional jump while a nested loop is a loop within a loop. Besides the C language they have nothing in common with each other.