Array

This is a part one of Data Structures series.

In this article, we will discuss 

  1. What is Array
  2. 1-D
  3. Multi-dimensional

An array is a sequential collection of elements of same data type and stores data elements in a continuous memory location. The elements of an array are accessed by using an index. The index of an array of size N can range from 0 to N−1. For example, if your array size is 5, then your index will range from 0 to 4 (5-1). Each element of an array can be accessed by using arr[index].

Continue reading “Array”

Create a free website or blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started