Introduction to IEEE STANDARDS and its different types.pptx
Array Data Structure & it's type........
1. Array
Array
An array is a collection of items of same data type stored at
contiguous memory locations.
- Bibek Das
- Bibek Das
2. - Bibek Das
- Bibek Das
Basic terminologies of the array:
Array Index: In an array, elements are identified by their
indexes. Array index starts from 0.
Array element: Elements are items stored in an array and can
be accessed by their index.
Array Length: The length of an array is determined by the
number of elements it can contain.
3. - Bibek Das
- Bibek Das
# Python code
arr = [10, 20, 30] # This array will store integer
arr2 = ['c', 'd', 'e'] # This array will store characters
arr3 = [28.5, 36.5, 40.2] # This array will store floating elements
Representation of Array:
// JS code
let arr = [10,20,30]; // This array will store integer
let arr2 = ['c', 'd', 'e'] // This array will store characters
let arr3 = [28.5, 36.5, 40.2] // This array will store floating elements
4. - Bibek Das
- Bibek Das
Types of Arrays
One Dimensional
Array
Two Dimensional
Array
Three-Dimensional
Array
6. - Bibek Das
- Bibek Das
The size of the array is fixed.
It is a list of the variable of similar data types.
It allows random access and all the elements can be
accessed with the help of their index.
One Dimensional Array