I am having some trouble with swapping variables in an array can someone show me the format

Recommended Answers

All 2 Replies

In which language?

from the languages I know the array always starts at 0 so make sure that is you want to swap out the 2nd element then you need to put arrayname[1] and then replace it with the number you want

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.