Is strrev() function not available in standard gcc compiler

I’m using Dev-cpp running on Windows Platform which shows no error and works fine with the strrev() function but when i run my program here, it gives compile time error with the following message “undefined refeence to strrev”.

Hi, @sobhagya i dont think strrev() is a standard function in c.
You can implement it easily, see this simple snippet.

Source: Stackoverflow post
Hope that helps. :slight_smile:

1 Like

There is no itoa() and strrev() in Codecef and SPOJ. Write your own function for reversing a string. Else it will show compilation error.

2 Likes