Posts

Showing posts from September, 2020

Control Structures

Image
  Understanding about Control Structures      We all know that a program is composed with a lot of data and a list of well defined instructions about how to access those data in order to provide a functionality or service. Data in a program can be understood when you have the idea about the variables and data structures. But to impose the instructions properly you must know about the control structures and statements. A control structure is a syntactic form in a language to express flow of control. A sequence of statements is executed depending on whether or not the condition it  true  or  false . This means the program chooses between two or more alternative paths. Hence it is the basic decision-making process in computer programming; flow control determines how a computer will respond when given certain conditions and parameters.               Flowchart of  if statement      Decision   ...