i am using strrev function and also included the header file string.h but i am getting the compile error
‘strrev’ was not declared in this scope.

what else is required?

can i know wat compiler r u using???

some times the compilerdirectory may not have string.h libraray functions.the same problem i had in alloc.h

strrev() isn't a standard function, so compilers aren't obligated to support it. What compiler are you using?

You can always write your own strrev().

in dev-c++ it works fine.
but the problem is when i submit the code on site. it gives me compile error.

Then, as deceptikon says, it's not supported by that compiler. Write your own.