CONTROL STRUCTURE
NAME:SONU KUMAR SHAW
ROLL NO::14
SEMISTER: 1st
SUBJECT:PROGRAMMING FOR PROBLEM
SOLVING THROUGH C
SUBJECT CODE: BCA102
COLLEGE:PAILAN COLLEGE OF
MANAGEMENT AND TECHNOLOGY
WHAT IS CONTROL STRUCTURE?
 A control structure in programming is a concept
used in various programming languages to
manage the flow of execution in a program.
Control structures allow the programmer to dictate
how a program should behave based on
conditions, loops, or jumps, which enables complex
logic and decision-making within the code. These
structures are fundamental in all modern
programming languages and serve to control the
sequence in which operations are performed.
WHAT IS JUMP STATEMENT IN C
PROGRAMMING?
In C programming, a jump statement is used to
transfer control to another part of the program,
altering the normal flow of execution. Jump
statements allow the program to "jump" to
different parts of the code, either conditionally
or unconditionally. There are four main jump
statements in C:
break:
The break statement is used to exit a loop (for, while,
do-while) or a switch statement prematurely. It
immediately terminates the loop or switch, and the
program control moves to the next statement after the
loop or switch block.
IN CONTROL STRUCTURE WHAT IS
NESTED IF ELSE ?
In control structures, a nested if-else refers to placing
one if-else statement inside another. This allows for
more complex decision-making where multiple
conditions need to be checked, and each condition
depends on the outcome of a previous condition.
Key Concept:
if-else is used to make decisions in a program. When
you nest one if-else statement inside another, you
are creating a hierarchical structure of decision-
making.
It helps to check multiple conditions and decide
between different actions based on those
WHAT IS THE ADVANTAGE OF
CONTROL STRUCTURE?
 The following are the advantage of control structure:
 Decision Making:
 Conditional Execution: This ability to perform different actions based
on different conditions enables the program to behave intelligently,
responding to different inputs or states.
 Code Organization and Readability:
 Clear Logic Flow: Control structures allow you to break complex logic into
manageable, logical chunks. This makes the code more readable,
understandable, and easier to maintain.
 Example: Using an if-else structure allows you to clearly separate different
cases of an action
 Facilitating Algorithm Implementation:
 Algorithm Complexity: Without control structures, it would be difficult
or even impossible to implement complex algorithms that require
branching or iteration over data sets.
WHAT IS DECISION MAKING
STATEMENT?
In C programming, decision-making
statements allow the program to make
choices based on conditions or logical
expressions. These statements enable the
program to execute different blocks of code
depending on whether a condition
evaluates to true or false.
The decision-making statements in C help
control the flow of the program, allowing it to
make decisions based on conditions, and
then take the appropriate action. There are
several types of decision-making statements
in C:
THANK YOU

More Related Content

PPTX
Module 2- Control Structures
PPT
3. control statements
PPT
Lecture 6Decision_Control_OR_Conditional_Control_Structures.ppt
PPTX
Control Structure in C-programming with examples
PPTX
Control satkcher ppt
PPTX
Control Structures of Programming (Introduction to Programming Concepts)
PPTX
control structure
Module 2- Control Structures
3. control statements
Lecture 6Decision_Control_OR_Conditional_Control_Structures.ppt
Control Structure in C-programming with examples
Control satkcher ppt
Control Structures of Programming (Introduction to Programming Concepts)
control structure

Similar to Programming Sonu Kumar Shaw CA-1 Roll-14.pdf (20)

PPTX
C Programming Control Structures(if,if-else)
PPTX
advanced credit programme prewsentation to
PPTX
Ch05-converted.pptx
PPT
Branching in C
PDF
chapter-4 slide.pdf
PPTX
Control statement-Selective
PPTX
9. control statement
PPT
Lecture 6-Part-1(Decision_Control_OR_Conditional_Control_Structures).ppt
PPTX
Constructs (Programming Methodology)
PPTX
Selection statements on programming with C
PPT
cprogrammingprogramcontrolsHJKHJHJHJ.ppt
PPT
control-statements detailed presentation
PDF
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
PDF
Password protected diary
PDF
Module 2 - Control Structures c programming.pptm.pdf
PPTX
Control structures
C Programming Control Structures(if,if-else)
advanced credit programme prewsentation to
Ch05-converted.pptx
Branching in C
chapter-4 slide.pdf
Control statement-Selective
9. control statement
Lecture 6-Part-1(Decision_Control_OR_Conditional_Control_Structures).ppt
Constructs (Programming Methodology)
Selection statements on programming with C
cprogrammingprogramcontrolsHJKHJHJHJ.ppt
control-statements detailed presentation
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
Password protected diary
Module 2 - Control Structures c programming.pptm.pdf
Control structures
Ad

Recently uploaded (20)

PPTX
Operating_Systems_Presentation_With_Icons (1).pptx
PDF
Topic-1-Main-Features-of-Data-Processing.pdf
PPTX
Clauses_Part1.hshshpjzjxnznxnxnndndndndndndndnndptx
PPT
System Unit Components and its Functions
PDF
PakistanCoinageAct-906.pdfdbnsshsjjsbsbb
PPTX
Malnutrition_Presentation_Revised.pptxhwjsjjsjs
PPTX
vortex flow measurement in instrumentation
PPT
COA______________₹₹_₹₹33₹₹₹33₹₹₹3UNIT1V8.ppt
PDF
script scriptscriptscriptscriptscriptscript
PDF
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
PDF
20A LG INR18650HJ2 3.6V 2900mAh Battery cells for Power Tools Vacuum Cleaner
PPTX
Chapter no 8 output devices dpart 2.pptx
PDF
CAB UNIT 1 with computer details details
DOCX
Copy-OT LIST 12.8.25.docxjdjfufufufufuuffuf
DOCX
internal and external hardware in Orthopedic Center
PPTX
最新版新加坡英华美学院毕业证(Informatics毕业证书)原版定制硕士文凭
PDF
SAHIL PROdhdjejss yo yo pdf TOCOL PPT.pdf
PPTX
dDifference Beetween Saving slides And Investment Slides.pptx
PPTX
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
PDF
Melt Flow Index Tester from Perfect Group India
Operating_Systems_Presentation_With_Icons (1).pptx
Topic-1-Main-Features-of-Data-Processing.pdf
Clauses_Part1.hshshpjzjxnznxnxnndndndndndndndnndptx
System Unit Components and its Functions
PakistanCoinageAct-906.pdfdbnsshsjjsbsbb
Malnutrition_Presentation_Revised.pptxhwjsjjsjs
vortex flow measurement in instrumentation
COA______________₹₹_₹₹33₹₹₹33₹₹₹3UNIT1V8.ppt
script scriptscriptscriptscriptscriptscript
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
20A LG INR18650HJ2 3.6V 2900mAh Battery cells for Power Tools Vacuum Cleaner
Chapter no 8 output devices dpart 2.pptx
CAB UNIT 1 with computer details details
Copy-OT LIST 12.8.25.docxjdjfufufufufuuffuf
internal and external hardware in Orthopedic Center
最新版新加坡英华美学院毕业证(Informatics毕业证书)原版定制硕士文凭
SAHIL PROdhdjejss yo yo pdf TOCOL PPT.pdf
dDifference Beetween Saving slides And Investment Slides.pptx
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
Melt Flow Index Tester from Perfect Group India
Ad

Programming Sonu Kumar Shaw CA-1 Roll-14.pdf

  • 1. CONTROL STRUCTURE NAME:SONU KUMAR SHAW ROLL NO::14 SEMISTER: 1st SUBJECT:PROGRAMMING FOR PROBLEM SOLVING THROUGH C SUBJECT CODE: BCA102 COLLEGE:PAILAN COLLEGE OF MANAGEMENT AND TECHNOLOGY
  • 2. WHAT IS CONTROL STRUCTURE?  A control structure in programming is a concept used in various programming languages to manage the flow of execution in a program. Control structures allow the programmer to dictate how a program should behave based on conditions, loops, or jumps, which enables complex logic and decision-making within the code. These structures are fundamental in all modern programming languages and serve to control the sequence in which operations are performed.
  • 3. WHAT IS JUMP STATEMENT IN C PROGRAMMING? In C programming, a jump statement is used to transfer control to another part of the program, altering the normal flow of execution. Jump statements allow the program to "jump" to different parts of the code, either conditionally or unconditionally. There are four main jump statements in C: break: The break statement is used to exit a loop (for, while, do-while) or a switch statement prematurely. It immediately terminates the loop or switch, and the program control moves to the next statement after the loop or switch block.
  • 4. IN CONTROL STRUCTURE WHAT IS NESTED IF ELSE ? In control structures, a nested if-else refers to placing one if-else statement inside another. This allows for more complex decision-making where multiple conditions need to be checked, and each condition depends on the outcome of a previous condition. Key Concept: if-else is used to make decisions in a program. When you nest one if-else statement inside another, you are creating a hierarchical structure of decision- making. It helps to check multiple conditions and decide between different actions based on those
  • 5. WHAT IS THE ADVANTAGE OF CONTROL STRUCTURE?  The following are the advantage of control structure:  Decision Making:  Conditional Execution: This ability to perform different actions based on different conditions enables the program to behave intelligently, responding to different inputs or states.  Code Organization and Readability:  Clear Logic Flow: Control structures allow you to break complex logic into manageable, logical chunks. This makes the code more readable, understandable, and easier to maintain.  Example: Using an if-else structure allows you to clearly separate different cases of an action  Facilitating Algorithm Implementation:  Algorithm Complexity: Without control structures, it would be difficult or even impossible to implement complex algorithms that require branching or iteration over data sets.
  • 6. WHAT IS DECISION MAKING STATEMENT? In C programming, decision-making statements allow the program to make choices based on conditions or logical expressions. These statements enable the program to execute different blocks of code depending on whether a condition evaluates to true or false. The decision-making statements in C help control the flow of the program, allowing it to make decisions based on conditions, and then take the appropriate action. There are several types of decision-making statements in C: