If....else statements in c lang. Dr. Vibha Dubey

If....else statements in c lang. Dr. Vibha Dubey
1 / 1
If....else statements in c lang. Dr. Vibha Dubey - slide 1 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 2 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 3 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 4 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 5 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 6 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 7 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 8 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 9 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 10 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 11 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 12 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 13 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 14 of 15 If....else statements in c lang. Dr. Vibha Dubey - slide 15 of 15
If....else statements in c lang. Dr. Vibha Dubey Assistant Professor(H.O.D) Dept. Of Computer Durga College(Raipur C.G.) Generally C program statement is executed in a order in which they appear in the program. But sometimes we use decision

Related Topics

Download this presentation From Below

"If....else statements in c lang. Dr. Vibha Dubey" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
If....else statements in c lang. Dr. Vibha Dubey
Assistant Professor(H.O.D)
Dept. Of Computer
Durga College(Raipur C.G.)<br>
02
Generally C program statement is executed in a order in which they appear in the program. But sometimes we use decision making condition for execution only a part of program, that is called control statement. Control statement defined how the control is transferred from one part to the other part of the program. There are several control statement like if...else, switch, while, do....while, for loop, break, continue, goto etc. Introduction<br>
03
Statement execute set of command like when condition is true and its syntax is

If (condition)

Statement;
The statement is executed only when condition is true. If the if statement body is consists of several statement then better to use pair of curly braces. Here in case condition is false then compiler skip the line within the if block. if statement<br>