Changes in lines 6 (#23612)

pull/32211/head
kenbhatt 2018-10-30 04:14:29 +05:30 committed by Randell Dawson
parent 1602caddc9
commit 48afcd0a3b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ title: Logical Operators and If Statements
---
# If Statements in C
The ability to change the behavior of a piece of code which is based on certain information in the environment is known as conditional code flow.Sometimes you want your code to run according to certain conditions. In such situation we can use If statements. It is also known as decision making statement as it makes the decision on the basis of given expression(or on given condition).If the expression evaluates to true, then the block of code inside the 'if' statement will be executed. If the expression evaluates to false, then the first set of code after the end of the 'if' statement (after the closing curly brace) will be executed.A expression is an expression that has relational and/or logical operators operating on boolean variables. A expression evaluates to either true or false.
The ability to change the behavior of a piece of code which is based on certain information in the environment is known as conditional code flow.Sometimes you want your code to run according to certain conditions. In such situation we can use If statements. It is also known as decision making statement as it makes the decision on the basis of given expression(or on given condition).If the expression evaluates to true, then the block of code inside the 'if' statement will be executed. If the expression evaluates to false, then the first set of code after the end of the 'if' statement (after the closing curly brace) will be executed. An expression has relational and/or logical operators operating on boolean variables. A expression evaluates to either true or false.
## Syntax of *if statement*
```