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

This is a discussion on Please Help me with this code. It would be greatly appreciated. within the C Programming forums, part of the General Programming Boards category; Devise a function my_min(x,y) that returns the smaller of two float values, and test the function with a driver. The ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    2

    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
    Location
    The edge of the known universe
    Posts
    32,821
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21