hey,
please how can i create delete function in an array???

Recommended Answers

All 4 Replies

To delete an item from an array just move everything up one element so that the one you want to delete is overwritten. For instance, if you have an array of 10 integers and you want to delete the first one, then copy #1 to #0, #2 to #1, etc.

please can u write it in a sample program for me because i don't understand what u meant......

please can u write it in a sample program for me because i don't understand what u meant......

Yes I could. But the real question is: what don't you understand from what Ancient Dragon told you? What have you tried? Show some code and tell us what the problem is. If you're not going to put in some effort, no-one is going to help you with your problems.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.