If Statement :
Syntax:
if(expression) statement1;
- Expression is Boolean Expression
- It may have true or false value
- Flowchart of If is as Shown in Fig
Flowchart :
What Actually It Does ?
- It Checks whether the given Expression is Boolean or not !!
- If Expression is True Then it executes the statement otherwise jumps to next_instruction .
Output :void main() { int a=5,b=6,c; c = a + b ; if (c==11) printf("Execute me 1"); printf("Execute me 2"); }
Execute me 1
Previous Index | Decision Making Home | Next Tutorial : If-Else Statement |

0 comments
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email