Conditional Events And Switch Statement - STUDY NOTES

Post Top Ad

demo-image

Conditional Events And Switch Statement

db5bd454928e6cc0bb06311757320699-001


CONDITIONAL EVENTS

It is used to perform any task on some condition.

There are two types of conditional statement supported by ‘C’.

          1.     if statement

          2.     if-else statement


Ladder of if or if-else

If we want to associate the condition with “else” part then the chain of “if-elseif-elseif-------” is created. This chain is called as ladder of if or if-else.


SWITCH STATEMENT


It is multiple conditional checking statement which is generally used in menu based program where we have to execute only one option at a time out of several options.


for detailed information download PDF


downloading servers are below

No comments:

Post a Comment

Post Bottom Ad