Introduction to Control Statements in C
In C, the control flows from one instruction to the next instruction until now in all programs. This control flow from one command to the next is called sequential control flow. Nonetheless, in most C programs the programmer may want to skip instructions or repeat a set of instructions repeatedly when writing logic. This can be referred to as sequential control flow. The declarations in C let programmers make such decisions which are called decision-making or control declarations. Below we will discuss the types of Control Statements in C.
Types of Control Statements in C
C also supports an unconditional set of branching statements that transfer the control to another location in the program. Selection declarations in C.
If statements
Switch Statement
Conditional Operator Statement
Goto Statement
Loop Statements
0 comments:
Post a Comment