# Module 5: Arrays and String

MODULE OVERVIEW

This module introduces arrays and strings in C programming, helping learners
understand how multiple values can be stored, accessed and managed within a
program.



It covers array fundamentals, one-dimensional and two-dimensional arrays,
multidimensional arrays and dynamic arrays.



Learners will also explore string variables and string-handling functions,
developing the skills needed to work with collections of data and text within C
programs.






WHAT WILL BE COVERED


5.1 INTRODUCTION OF ARRAY

Understand the concept of arrays and how they are used to store multiple values
of the same data type under a single variable name. Learn how arrays help
organise data and simplify programming operations.


5.2 ONE-DIMENSIONAL ARRAY

Learn how to declare, initialise and access one-dimensional arrays in C.
Understand how elements are stored and retrieved using index positions and how
arrays can be used to manage collections of data.


5.3 TWO-DIMENSIONAL ARRAY

Explore two-dimensional arrays and how they are used to represent data in rows
and columns. Learn how to declare, initialise and access array elements using
row and column indexes.


5.4 MULTIDIMENSIONAL ARRAY

Understand multidimensional arrays and how they extend array structures beyond
two dimensions. Learn how multidimensional arrays can be used to organise and
manage data in more complex arrangements.


5.5 DYNAMIC ARRAYS

Learn about dynamic arrays and how memory can be managed to accommodate data
requirements during program execution. Understand the concept of dynamically
allocated array storage and its role in programming.


5.6 IMPLEMENTING STRING VARIABLES

Understand how strings are represented and stored in C using character arrays.
Learn how to declare, initialise and work with string variables to handle
textual data.


5.7 STRING HANDLING FUNCTIONS

Explore string-handling functions in C and how they are used to perform
operations on strings. Learn how string functions support tasks such as
processing, comparing, copying and manipulating text.


SKILLS YOU WILL GAIN

 * Understanding array fundamentals and their applications.

 * Working with one-dimensional and two-dimensional arrays.

 * Using multidimensional arrays to organise data.

 * Understanding dynamic arrays.

 * Implementing and managing string variables.

 * Applying string-handling functions in C.


LEARNING OUTCOMES

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

 * Explain the purpose and structure of arrays in C.

 * Declare, initialise and access one-dimensional arrays.

 * Work with two-dimensional and multidimensional arrays.

 * Understand the concept of dynamic arrays.

 * Store and manipulate strings using character arrays.

 * Apply string-handling functions to perform common text operations.


CERTIFICATION ALIGNMENT

This module develops data-handling and array-based programming skills that form
an important part of C programming fundamentals. The concepts covered support
learners in building practical programs and progressing through the C and C++
curriculum.


CONTINUE TO THE NEXT MODULE

Continue to Module 6: Functions
[https://teamacademy.help.center/article/1338-module-6-functions] to learn how
functions are used to organise programs, create reusable code, work with
user-defined and system-defined functions, and pass parameters between
functions.