Deleting an element in an array (C program)

preview_player
Показать описание
Technical lectures by Shravan Kumar Manthri.
Watch "Patterns in C- Tips & Tricks " in the following link...

You can watch "Tricky 150 mcqs in C" in the following link

Technical lectures by Shravan Kumar Manthri.
Watch Technical C programming

Watch Data Warehousing & Data Mining

Watch Design & Analysis of Algorithms

Watch Formal Languages & Automata theory

Like us on fb: CSE GURUS

This video explains Deleting an element in array with execution. #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS
Рекомендации по теме
Комментарии
Автор

I asked value as an input from the user and wasn't able to code well, but taking position seems much easier

aariffmohd
Автор

awesome explanation sir.thank you sir.

bhavyasachula
Автор

Ossm teaching after so many lectures this is best

darshansdsd
Автор

In the second last loop

for(i=pos-1;i>=n-1;i++)
a[i]=a[i+1];
a[pos-1]=value;

we need to store it lastly in the value variable .

akhilmishra
Автор

Good explanation sir easy to understand for me thank u sir

kousalyad
Автор

How to delete multiple elements like taking the limit frm user and how to delete elements lzz tell me

poochaser
Автор

It's wrong code..
It must be
For(i=position;i<n;i++)

Sushma_devi_s
Автор

Ti faccio notare però che una volta rimosso il numero dal vettore, la memoria che il vettore occupa sulla scheda RAM è sempre la stessa poiché non è stata rimossa fisicamente la locazione di memoria del vettore nel momento della rimozione del numero.

claudiosilvestri
Автор

How to free up the unnecessary space at the end of array after deleting

SangArt
Автор

one mistake in second for loop i<=n-1

chirag
Автор

No need to ask user for length of array
Simply
int Length = sizeof(arr) / sizeof(are[0])

It will calculate like
Length as int byte size of a = 5*4, byte size of a[0] = 4
Length = 20/4 = 5

priyeshpandey
join shbcf.ru