ARRAY
WHAT IS AN ARRAY?
- An array is a derived data type from fundamental data type.
- It is a collection of variables of the same type that are referenced by a common name which are stored in a contiguous memory location.
DECLARING AN ARRY
- Arrays are declared by specifying its data type,name and the number of elements the array holds between square brackets immediately following the array name.
Eg- int name [20];
- int student_marks[5][20];
TYPES- 1 DIMENSIONAL
- N DIMENSIONAL
TYPES- 1 DIMENSIONAL
- N DIMENSIONAL
No comments:
Post a Comment