You are not logged in. Please login at www.codechef.com 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

3★sobhagya
2.7k132747
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.

link

answered 28 Jun '13, 13:06

chandan11111's gravatar image

3★chandan11111
3.6k133555
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. :)

link

answered 28 Jun '13, 13:01

sunny_patel's gravatar image

2★sunny_patel
1.3k31025
accept rate: 19%

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×2,474
×100
×24

question asked: 28 Jun '13, 12:52

question was seen: 17,470 times

last updated: 24 Sep '13, 17:13