You are not logged in. Please login at to post your questions!


[closed] 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".

asked 28 Jun '13, 12:52

sobhagya's gravatar image

accept rate: 12%

closed 24 Sep '13, 17:13

The question has been closed for the following reason "The question is answered, right answer was accepted" by sobhagya 24 Sep '13, 17:13

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


answered 28 Jun '13, 13:06

chandan11111's gravatar image

accept rate: 10%

edited 28 Jun '13, 13:09

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. :)


answered 28 Jun '13, 13:01

sunny_patel's gravatar image

accept rate: 19%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 28 Jun '13, 12:52

question was seen: 17,470 times

last updated: 24 Sep '13, 17:13