How would I reverse an array of characters?

Posted by jreicher on Stack Overflow See other posts from Stack Overflow or by jreicher
Published on 2010-05-09T06:36:07Z Indexed on 2010/05/09 6:38 UTC
Read the original article Hit count: 154

Filed under:
|
|
|

Lets say I have an array of characters:

char* foo = "abcdefg";

How would I reverse them but keep them within the array "foo"?

© Stack Overflow or respective owner

Related posts about c++

Related posts about array