# Module 3: Control Statements and Expressions

MODULE OVERVIEW

This module introduces control statements and expressions in C programming,
helping learners understand how programs make decisions and execute instructions
based on specific conditions.



It covers decision-making statements, different types of if-else blocks,
switch-case structures and arithmetic expressions.



Learners will also explore expression evaluation and the GOTO statement,
developing a better understanding of how program flow can be controlled and
structured.






WHAT WILL BE COVERED


3.1 DECISION MAKING USING IF STATEMENT

Learn how the if statement is used to make decisions in a C program. Understand
how conditions are evaluated and how statements are executed when a condition is
satisfied.


3.2 TYPES OF IF...ELSE BLOCK

Explore different forms of if-else statements used in C programming. Learn how
to implement conditional logic to handle different situations and execute
appropriate statements based on the results of conditions.


3.3 SWITCH CASE BLOCK

Understand how the switch-case statement is used to select and execute a
specific block of code based on the value of an expression. Learn how it
simplifies decision-making when handling multiple possible cases.


3.4 ARITHMETIC EXPRESSIONS

Learn how arithmetic expressions are formed and used in C programs. Explore the
use of arithmetic operators to perform mathematical calculations and manipulate
numerical values.


3.5 EVALUATION OF EXPRESSIONS

Understand how expressions are evaluated in C programming. Learn how operators,
operands and evaluation rules determine the result of expressions and how these
results influence program execution.


3.6 GOTO STATEMENT

Explore the GOTO statement and how it transfers program execution to a labelled
statement within a program. Understand its use in controlling program flow and
its role in C programming.


SKILLS YOU WILL GAIN

 * Implementing decision-making statements in C.

 * Using different if-else structures.

 * Applying switch-case statements.

 * Constructing arithmetic expressions.

 * Understanding expression evaluation.

 * Working with control-flow statements.


LEARNING OUTCOMES

By the end of this module, learners will be able to:

 * Implement conditional logic using if statements.

 * Use different if-else structures to handle multiple conditions.

 * Apply switch-case statements for multi-option decision-making.

 * Perform mathematical calculations using arithmetic expressions.

 * Understand how expressions are evaluated in C.

 * Explain and implement the GOTO statement.


CERTIFICATION ALIGNMENT

This module develops programming logic and control-flow fundamentals that are
essential for writing structured C programs. The concepts covered contribute to
the core programming knowledge developed throughout the C and C++ training
program.


CONTINUE TO THE NEXT MODULE

Continue to Module 4: Looping
[https://teamacademy.help.center/article/1336-module-4-looping] to learn how
loops are used to repeat instructions, work with different looping structures
and control repetitive execution in C programs.