when are you going to use array and loop?

Recommended Answers

All 2 Replies

When you need more than one of some object, and when you need to do something more than once.

Arrays are used when one needs random access of its elements and when insertion of a new element is done by extending the tail of the container. Also, an array can be used when there is a need of mapping one set to another. Otherwise, some other types of container may be more appropriate.

If that is not the answer you are looking for, you may need to be more specific in your request.

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.