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

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