Learn basic concept of c , c++ and python programming in regularcodes.com
C program to delete an element in an array
In this post we are learning how to delete an element in an array. There are two possibility to delete array element.
1) Delete by array index
2) Delete by array value
If delete array element modified all element on right side. Modified all right side array value by index-1. index are represented the position of array element.
That means delete array element time complexity is O(n). Modification of array content.
Note that after delete array element there are no effect in size of array.
Given two function.
C program to remove array element.
View execution process.