hi all
i want the code for reversing a string

eg : I live in india
Ans India in live i

i want the code for reversing a string

You didn't say the magic word... :)
But even if you did: we don't give away code for your homework. You need to put in some effort first.

But to help you on your way:

Do you know how to use loops?
If not: link
Did you know that a C-style string is nothing more then an array of characters terminated by a '\0'? If not: click
You will also have to know how many characters your array has, so you could use strlen()