home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!caen!hellgate.utah.edu!jensen.cs.utah.edu!u-dmfloy
- From: u-dmfloy%jensen.cs.utah.edu@cs.utah.edu (Daniel Floyd)
- Subject: Re: Most difficult part of learning C?
- Date: 27 Aug 92 08:59:08 MDT
- Message-ID: <1992Aug27.085909.5817@hellgate.utah.edu>
- Organization: University of Utah CS Dept
- References: <1992Aug25.180919.10370@samba.oit.unc.edu> <behrenss.714775792@hphalle6> <chuckb.714781695@milton> <17g9mlINNsu1@early-bird.think.com>
- Lines: 19
-
- In article <17g9mlINNsu1@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
- >In article <chuckb.714781695@milton> chuckb@milton.u.washington.edu (Chuck Bass) writes:
- >>I would bet that assembly language programmers have no problem
- >>picking up C's notion of pointers.
- >
- >I disagree. Assembly programmers are used to pointers being addresses, and
- >arithmetic on pointers being address arithmetic. They're probably the ones
- >who get most confused by C's automatic scaling during ptr+integer
- >calculations, and don't understand why p+=sizeof(*p) doesn't do what they
- >expect.
- >Barry Margolin
- >barmar@think.com {uunet,harvard}!think!barmar
-
- I have to agree and disagree here. I learned assembly language before C
- which gave me a good grasp on the concept or "notion" of pointers.
- This helped; unfortuneately, I still fell prey to C's automatic scaling
- with pointer arithmetic as Barry suspected.
-
- Dan Floyd
-