Week 11 Array
Week 11 Array
TOPIC: Array
Program #1
write a program in c++ that demonstrate the use of array and also use a string
and integer variable to display data in array.
C++ Arrays
Arrays are used to store multiple values in a single variable, instead of declaring
separate variables for each value.
To declare an array, define the variable type, specify the name of the array
followed by square brackets and specify the number of elements it should store:
Program #1: write a program in c++ that demonstrate the use of array and also
use a string and integer variable to display data in array.