Thread: Please Help me with this code. It would be greatly appreciated.

  1. #1
    Registered User
    Join Date
    Nov 2010

    Please Help me with this code. It would be greatly appreciated.

    Devise a function my_min(x,y) that returns the smaller of two float values, and test the function with a driver. The driver should prompt the user for input and then display the value returned by the my_min() function.

    I am asking you to call the function my_min() instead of just min() to avoid any possible conflict with the min() function included with your C compiler, usually in stdlib.h.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Nice - what do you need us for?

    Read the rules, make an effort, then we'll help.

    This isn't a code factory on demand, simply by you posting your homework.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  2. Reading problem
    By Tubs in forum C Programming
    Replies: 6
    Last Post: 03-24-2006, 01:30 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM