EVERYTHING ABOUT ARRAY IN CODING⠀⠀
EVERYTHING ABOUT ARRAY IN CODING⠀
⠀
👉Array⠀
An array is a collection of items that have a similar data type stored at contiguous memory locations.⠀
⠀
👉Index⠀
Every item in an array has a key so that we can access the item by using that key. This key is called the index.⠀
⠀
👉Element⠀
Elements are the data values present in an array. Each element also has its own index, which is used to access the element.⠀
⠀
👉Length⠀
The total number of elements in an array is called length (size).⠀
⠀
Why the last element index isn’t always equal to length - 1?⠀
⠀
⠀
👉Array⠀
An array is a collection of items that have a similar data type stored at contiguous memory locations.⠀
⠀
👉Index⠀
Every item in an array has a key so that we can access the item by using that key. This key is called the index.⠀
⠀
👉Element⠀
Elements are the data values present in an array. Each element also has its own index, which is used to access the element.⠀
⠀
👉Length⠀
The total number of elements in an array is called length (size).⠀
⠀
Why the last element index isn’t always equal to length - 1?⠀
⠀
Comments
Post a Comment