Data Structures - Array Deletion with C coding

preview_player
Показать описание
This video tutorial explain you how to delete an element from array.
Deletion means remove an element from the list. we can delete an element from any position, it may be first, last or intermediate position.
From this tutorial you can also learn how to implement array deletion in c programming.

Other pages of SlideHunt

-~-~~-~~~-~~-~-
#SlideHunt
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

thank you for this tutorial, keep it up 👍👍👍👍🙂🙂🙂🙂

SmartProgramming
Автор

Clear explanation sir. Thank u so much.

pavithrasam
Автор

Thanks sir great tutorial help alot waiting gor the next tutorials

GurdeepSingh-lxbh
Автор

hey i want to do same thing with strings what can i do !! mean i have to search a name from user and than delete it !!!

iwondersometime
Автор

After delation of the position element...why u write( i=position+1) ?

aamirfarhan
Автор

can anyone help me doing the last loop using for

tasmiahahmedchw
Автор

//delete Element from an Array

#include<iostream>
using namespace std;
int main(){
int arr[5], len, i, dPos;
cout<<"Enter the Length of the array:"<<endl;
cin>>len;
cout<<"Enter the Array :";
for(i=0;i<len;i++){
cin>>arr[i];
}
cout<<"Enter the Position to delete: ";
cin>>dPos;
//position Shifting
for(i=dPos;i<len;i++){
arr[i]=arr[i+1];
}
//print the array
for(i=0;i<len-1;i++){
cout<<arr[i]<<" ";
}
}
//Used an more easy Algorithm

novax
Автор

how we can delete it in c++ language.

tanzeelamin
Автор

but how can we shorten the size of array it will still be 20

pratyushsingh
Автор

Please speak clearer, thanks as well for the video

melslapper
Автор

does anyone else hear a high pitched tone on this vid?

willmattis
Автор

instead of writing "arr[i-1]=arr[i]" can we write "arr[i]=arr[i+1]"

anirudhyadeb
join shbcf.ru