remove a element from array c code example
Example 1: how to delete element from array c
for (int i = pos; i < size; i++)
{
arr[i-1]= arr[i];
}
Example 2: c remove element from array
void remove_element(array_type *array, int index, int array_length)
{
int i;
for(i = index; i < array_length - 1; i++) array[i] = array[i + 1];
}