home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16961 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!allegra!princeton!csservices!kastle!blume
  3. From: blume@kastle.Princeton.EDU (Matthias Blume)
  4. Subject: Re: the abs() function in C
  5. Message-ID: <1992Nov21.030312.22363@csservices.Princeton.EDU>
  6. Sender: news@csservices.Princeton.EDU (USENET News System)
  7. Reply-To: blume@kastle.Princeton.EDU (Matthias Blume)
  8. Organization: Dept. of Computer Science, Princeton University
  9. References: <pebi.722223424@zephyr.aem.umn.edu> <maurer.722246649@magellan.stanford.edu> <1992Nov20.162807.9120@magnus.acs.ohio-state.edu>
  10. Date: Sat, 21 Nov 1992 03:03:12 GMT
  11. Lines: 12
  12.  
  13. In article <1992Nov20.162807.9120@magnus.acs.ohio-state.edu>,
  14. sbbrown@magnus.acs.ohio-state.edu (Stephen B. Brown) writes:
  15.  
  16. |> Of course, if he's using ANSI style function prototype declarations,
  17. |> then the compiler can complain about
  18. |>     abs(-2.0)
  19. |> so then he's got another problem.  It was actually this example which
  20.  
  21. No, in this case the compiler will insert an automatic conversion.
  22.  
  23.  
  24. -Matthias
  25.