diff --git a/cpp/arrays/array_deletion.md b/cpp/arrays/array_deletion.md new file mode 100644 index 0000000..6429c1e --- /dev/null +++ b/cpp/arrays/array_deletion.md @@ -0,0 +1,30 @@ +//program to delete an element in ana array + +#include +using namespace std; +int main() +{ + int arr[10], tot=10, i, elem, j, found=0; + cout<<"Enter 10 Array Elements: "; + for(i=0; i>arr[i]; + cout<<"\nEnter Element to Delete: "; + cin>>elem; + for(i=0; i