filmov
tv
Write a C program to remove all occurrences of a specific element from a given array of integers.

Показать описание
Write a C program to remove all occurrences of a specific element from a given array of integers. The program should display the resulting array after removing the element.
Test Data :
Input the size of array : 10
Input 10 elements in the array :
3 2 5 6 2 7 9 2 2 1
Input the element that you want to delete: 2
Expected Output :
The new list is : 3 5 6 7 9 1
Test Data :
Input the size of array : 10
Input 10 elements in the array :
3 2 5 6 2 7 9 2 2 1
Input the element that you want to delete: 2
Expected Output :
The new list is : 3 5 6 7 9 1