how to reverse a string in character array without using string functions...

One way to do it is to copy the string backwards into another character array.

can you please help me with the code...

If you are asking me to write the code for you, the answer is no. Try to do it yourself and post the code you tried. Try it out with pencil & paper first so that you can figure out in your head what has to be done. Then use a simple example, such as some three letter word.

thnks ...i did it

void main()
char a[100];
cout<<"Enter string";
cout<<"\nReversed string:";
int i,j;


Either you are a very very fast programmer, or you cheated and plagiarized someone else's poorly written and non-standard code.

commented: Agreed +1

i knew how to enter string was jus confused about the second for loop then i tried n it worked...

I'll give you the benefit of the doubt and assume that's true, but I'm giving you a friendly warning. You really should have said that and posted your code sooner. You would have gotten better help because the post wouldn't have looked so "givemethecodez", which is frowned upon. That's why you got this reply from AD.

Now just figure out your CODE-tags

#include <iostream>
int main() {
  std::cout << "This looks nice, and is easily readable." << std::endl;
  return 0;