Introduction to Computing
BSCS-1st
Example
Conti..
Arrays
1D Arrays
• An array is a collection of a fixed number of components (also called
elements) all of the same data type and in contiguous (that is,
adjacent) memory space.
• A one-dimensional array is an array in which the components are
arranged in a list form.
Example
Conti..
Initialization
Initialization Array in Declaration
Example
Reading Material
• D.S.Malik. C++ Programming: From Problem Analysis to Program Design,
Cengage Learning: 8th edition
• Chapter#8

Introduction to computing for BSCS 1.pdf