Data Structures Primer
Data Structures Primer
Data Structures Primer
Data structure
Primitive DS Non-Primitive DS
Non-Primitive DS
int arr[10]
•Where int specifies the data type or type of
elements arrays stores.
•“arr” is the name of array & the number specified
inside the square brackets is the number of
elements an array can store, this is also called
sized or length of array.
Arrays
•Following are some of the concepts to be
remembered about arrays:
• The individual element of an array can be
accessed by specifying name of the array,
following by index or subscript inside square
brackets.