home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 12992 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.0 KB

  1. Path: sparky!uunet!pacsoft!mike
  2. From: mike@pacsoft.com (Mike Stefanik)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why should POINTERS be so damn hard to understand ?
  5. Message-ID: <1363@pacsoft.com>
  6. Date: 29 Aug 92 21:07:32 GMT
  7. References: <l9nl34INNhln@almaak.usc.edu> <25233@castle.ed.ac.uk> <1992Aug27.135946.6622@infonode.ingr.com>
  8. Organization: Pacific Software Group, Riverside, Ca.
  9. Lines: 13
  10.  
  11. In an article, henders@infonode.ingr.com (Greg Henderson) writes:
  12. >[...] if you are worried about low-level efficiency the second
  13. >version [using a pointer] is a little tighter, as each reference
  14. >to the array value in the pointer version requires less work to
  15. >come up w/ that address.
  16.  
  17. This depends on which machine and what compiler you're using... I've
  18. seen code using array indices run faster than the flavor using pointers.
  19. Efficiency is a subjective thing after all, and it doesn't necessarily
  20. mean just making the program run faster.
  21. -- 
  22. Mike Stefanik  mike@pacsoft.com  ...!uunet!pacsoft!mike
  23. Pacific Software Group, Riverside, CA
  24.