Arrays and Strings
, Array
• An array is a collection of data that holds fixed number of values of same
type.
• The size and type of array cannot be changed after declaration.
• An array is a subsequent memory location.
Example:
float mark[10];
,Array Declaration
Syntax:
dataType arrayName[arraySize];
Example:
float mark[5];
Mark[0] Mark[1] Mark[2] Mark[3] Mark[4]
,