Can someone explain to me the process of the array deletion.
steg by step so that i understand the whole process thank you. please dont forget to explain what happens in every loop and what happens to the delted array. does it become 0 or does it vanish and so forth
Code:
int i, varunummer;
soka(antal_varor, inventory);
for (;;)
{
int ja;
printf("\nVill du avregistrera en vara ja(1) eller nej(2) ");
scanf("%d", &ja);
if (ja==1)
{
// printf("du har valt att avregistrera en vara\n");
printf("Ange varunumret som du vill avregistrera?\n");
scanf("%d", &varunummer);
i = find_part(varunummer, antal_varor, inventory);
--*antal_varor;
for ( ; i < *antal_varor; i++)
inventory[i] = inventory[i + 1];
}