What are the basic operations possible on array?

Following are the basic operations supported by an array.

·        Traverse − Access all the array elements one by one,

o   For Example: printing all elements, sum and average of all elements

·        Insertion − Adds an element at the given index.

·        Deletion − Deletes an element at the given index.

·        Search − Searches an element using the given index or by the value,

o   For Example: Finding the Largest/Smallest Element

·        Update − Updates an element at the given index

o   For Example: Increment / Decrement all elements

·        Sorting – Arranging unordered list to ordered list as ascending order, descending order.

 

Back - C Language Notes By Vivek Sir email: vivekdubey22@gmail.com (w) 9826424484

C Language Video