Find the bug - Code Translated Basic to C - Single File Short Subroutines

  • Status: Closed
  • Prize: $40
  • Entries Received: 1
  • Winner: ambrozija

Contest Brief

I've have some code that was translated from BASIC to C but there is a bug somewhere. Correctly identify the bug first!
No need to compile and test. Just review the code and identify the bug.

Source code in BASIC:
http://www.dspguide.com/ch12/3.htm (BASIC Line numbers in the 1000s)
http://www.dspguide.com/ch12/5.htm (BASIC Line numbers in the 3000s)

Translated code in C:
Compare the BASIC code in the links provided to the attached file: fft-bug.c

Symptom: The code compiles and runs but the output is not correct.

I'm expecting some small logic error or a +/- that is backwareds. Perhaps an int vs float problem.

Contest will be terminated once the problem is identified.
First to identify, wins.
In the event of multiple bugs/winners, I reserve the right to decide how the award is distributed.

Recommended Skills

Employer Feedback

“This contest was to find a bug in a subroutine. He found it quickly and was correct about the issue. Recommended.”

Profile image rpxmike, United States.

Public Clarification Board

  • rpxmike
    Contest Holder
    • 8 years ago

    CONTEST CLOSED - WINNER SELECTED

    • 8 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!