i was wondering how i might be able to empty out the first 5 elements of an array with 10 things in it?
thank you
i was wondering how i might be able to empty out the first 5 elements of an array with 10 things in it?
thank you
will copy the next 5 elements to the first five.Code:int a[10]; int i; for(i=0;i<5;i++) a[i]=a[i+5];
In this type of situation.where you have to remove the first elements you can implement a queue also.
Long time no C. I need to learn the language again.
Help a man when he is in trouble and he will remember you when he is in trouble again.
You learn in life when you lose.
Complex problems have simple, easy to understand wrong answers.
"A ship in the harbour is safe, but that's not what ships are built
for"