title: Reverse a character array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1128985/c-reverse-array">C++ Reverse Array</a>  </p>
  </blockquote>
  
  
  
  <p>How can I reverse a character array? Like this:</p>
  
  <pre><code>char word1[10] = "this"; 
  char word2[10] = word1[10] // in reverse 
  cout&lt;&lt;word2; // I want it to output "siht"
  </code></pre>