Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

how to delete an array element without using predefined functions/methods in C and Java: Without using predefined functions!

OpenStudy (woodrow73):

You could just make another array of 1 less length, copy it in a loop (skipping the desired element) and then assigning the original array = to the copied array.

OpenStudy (e.mccormick):

Well, rashid, what did you come up with so far?

OpenStudy (anonymous):

Try using a FOR loop with start-index value the index of the element you want to remove from the array. Then shift the position of the elements after the index. I can explain better using an actual code but I don't like to spoon-feed an answer.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!