how can delete the 1th element of a sorted array?
anyone can help me..
how can delete the 1th element of a sorted array?
anyone can help me..
You can't "delete" members of arrays. You just have to copy everything past that point, back one.
1,2,3,4,5
delete(3)
1,2,4 <- 4,5 move the four left one
1,2,4 <- 5,5 move the five left one
1,2,4,5,5 figure out what you want done with the extra five
You cannot actually just delete array members.
Quzah.
Hope is the first step on the road to disappointment.
thanks
explain with c program
No. You post your attempt, and we'll help you correct it. I've explained the logic, you give it a try. Hint: Use a loop.
Quzah.
Hope is the first step on the road to disappointment.