how to delete element from array c
for (int i = pos; i < size; i++)
{
arr[i-1]= arr[i];
}
how to delete element from array c
for (int i = pos; i < size; i++)
{
arr[i-1]= arr[i];
}
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];
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us