home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!sun-barr!cs.utexas.edu!swrinde!gatech!concert!sas!mozart.unx.sas.com!sasghm
- From: sasghm@theseus.unx.sas.com (Gary Merrill)
- Newsgroups: comp.lang.c
- Subject: Re: Most difficult part of learning C?
- Message-ID: <BtLGMw.4nA@unx.sas.com>
- Date: 26 Aug 92 14:08:56 GMT
- References: <9208251159.AA04122@ult4> <1992Aug26.124652.9509@alw.nih.gov>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 34
- Originator: sasghm@theseus.unx.sas.com
- Nntp-Posting-Host: theseus.unx.sas.com
-
-
- In article <1992Aug26.124652.9509@alw.nih.gov>, sullivan@alw.nih.gov (Jim Sullivan) writes:
- |> In article <9208251159.AA04122@ult4>, goldstei@cgi.com ("Morris Goldstein") writes:
- |> |> I am conducting research for a little project concerning difficulties in
- |> |> learning C and how to improve the teaching of C so as to circumvent these
- |> |> problems.
- |> |>
- |> |> When learning C, what things did you find the most confussing/difficult to
- |> |> understand?
- |>
- |> What else?... POINTERS!
-
- Here's what else (though this does, I suppose, fall under the giant
- umbrella of pointers as well): multi-dimensional arrays.
-
- I have taught classes in C programming a number of times and, even
- once people think they are past pointers and arrays, the issues
- of multi-dimensional arrays really throw them. (This is, of
- course [and I know I'm courting flames here], because there really
- aren't multi-dimenisonal arrays in C -- it just looks like there
- are.) How to define them, how to initialize them, etc. I never
- use them myself, but people who feel the need to get up close
- and personal with matrices seem to like them.
-
- In addition, time is well spent on declarations in C -- beyond the
- simplistic ones. Functions returning pointers to functions taking
- ... as parameters and returning ... You get the idea. Just
- learning to *read* C declarations correctly goes a long way to
- having a good grasp of the language. Beware of uncritically using
- examples from books. There frequently are mistakes.
- --
- Gary H. Merrill [Principal Systems Developer, C Compiler Development]
- SAS Institute Inc. / SAS Campus Dr. / Cary, NC 27513 / (919) 677-8000
- sasghm@theseus.unx.sas.com ... !mcnc!sas!sasghm
-