c. If- else statement

If-Else statements

C programming are used to make decisions based on the conditions. Conditional statements execute sequentially when there is no condition around the statements. If you put some condition for a block of statements, the execution flow may change based on the result evaluated by the condition. This process is called decision making in ‘C.’

In ‘C’ programming conditional statements are possible with the help of the following two constructs:

1. If statement

2. If-else statement

Leave a Reply

Your email address will not be published. Required fields are marked *