3

Statements

Learning Objectives

In this chapter, you will learn about:

  • Statements
  • How statements are classified
  • Non-executable statements and executable
  • statements
  • Simple statements and compound statements
  • Declaration statement and definition statement
  • Null statement and expression statements
  • Labeled statements
  • Flow control statements
  • How to implement decision making
  • Selection statements and jump statements
  • How to perform iteration
  • Iteration statements
  • Role of break and continue statements
  • Graphical representation of flow of control

3.1 Introduction

In the last chapter, you have learnt how to form and evaluate expressions. In C language, the expressions do not have any independent existence. To make them exist, they must be converted ...

Get Programming in C: A Practical Approach, First Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.