DS

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.




Subscribe us on Youtube

Share This Page on

Question


Dheeraj | 26-Dec-2017 07:59:56 pm

I want all array operations of data structures in a single program please mail me the code thank you


Ask Question