# reverse order of array

Page 1 of 1

## 2 Replies - 1379 Views - Last Post: 09 February 2010 - 08:45 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=154905&amp;s=20bd109e98ed1221f370652904e604d6&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 Shanks-T-roux

Reputation: 0
• Posts: 1
• Joined: 09-February 10

# reverse order of array

Posted 09 February 2010 - 08:32 AM

what is c++ code to reverse the order of an array?
Is This A Good Question/Topic? 0

## Replies To: reverse order of array

### #2 Martyn.Rae

• The programming dinosaur

Reputation: 553
• Posts: 1,433
• Joined: 22-August 09

## Re: reverse order of array

Posted 09 February 2010 - 08:34 AM

Exactly what it says. You have an array of lets say numbers 6, 4, 7, 8 and 5. The reverse order would be 5, 8, 7, 4 and 6.

Does that help.

### #3 japanir

• jaVanir

Reputation: 1014
• Posts: 3,025
• Joined: 20-August 09

## Re: reverse order of array

Posted 09 February 2010 - 08:45 AM

you can look for the c\c++ snippets, here on DIC (just type "reverse a string c++" ). there are tons of snippets demonstrating various ways to reverse a String.
and please, respect our forum rules number 1:

Quote

We will not do your homework for you! Do not ask us to give you code!

This post has been edited by japanir: 09 February 2010 - 08:45 AM