DS Overview of Various Array Operations

Overview of Various Array Operations

Following are the various operations supported by an array.

  • Traverse − print all the array elements one by one.

  • Insertion − add an element at given index.

  • Deletion − delete an element at given index.

  • Search − search an element using given index or by value.

  • Update − update an element at given index.

Traverse Operation

In traversing operation of an array, each element of an array is accessed exactly for once for processing. This is also called visiting of an array.

Insertion Operation

Insert operation is to insert one or more data elements into an array. Based on the requirement, new element can be added at the beginning, end or any given index of array.

Deletion Operation

Deletion refers to removing an existing element from the array and re-organizing all elements of an array.

Search Operation

You can perform a search for array element based on its value or its index.

Update Operation

Update operation refers to updating an existing element from the array at a given index.


Share This Page on:

Questions


Someone from somewhere | 28-Sep-2017 08:45:34 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:37 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:38 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:38 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:40 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:41 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:41 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:44 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:44 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:52 am

why does the sight of my computer science text book make me want to projectile vomit??!


Someone from somewhere | 28-Sep-2017 08:45:53 am

why does the sight of my computer science text book make me want to projectile vomit??!


Ask Question