home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 13089 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.2 KB  |  33 lines

  1. Path: sparky!uunet!sun-barr!ames!haven.umd.edu!darwin.sura.net!wupost!gumby!destroyer!ubc-cs!uw-beaver!fluke!ssc-vax!dano
  2. From: dano@ssc-vax (Dan Olson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Most difficult part of learning C?
  5. Message-ID: <5525@ssc-bee.ssc-vax.boeing.com>
  6. Date: 31 Aug 92 16:18:51 GMT
  7. References: <9208251159.AA04122@ult4>
  8. Sender: news@ssc-vax.boeing.com
  9. Reply-To: dano@ssc-vax.boeing.com (Dan Olson)
  10. Organization: Boeing Aerospace & Electronics
  11. Lines: 20
  12.  
  13. It's been a while since I learned C, so even though I remember having
  14. problems (I still do!), I don't remember many specific ones.  Probably
  15. the biggest all around gatcha was that syntax for other high level
  16. languages was legal in C, but wasn't what you wanted.  Like...
  17.  
  18.   Matrix indexing: M[i,j] (instead of) M[i][j]
  19.   Equality test:   a = b  (instead of) a == b
  20.  
  21. And I seem to remember alot of people being confused with strings doing
  22. things like...
  23.  
  24.   char *msg;
  25.   strcpy(msg, "fukitsnukin");
  26.  
  27. And in K&R days, problems with mismatched function arguments.
  28. -- 
  29. dano  [] UUCP:      ..!uw-beaver!ssc-vax!dano
  30.       [] Internet:  dano@ssc-vax.boeing.com
  31. "Once the game is over, the king and the pawn go back in the same box."
  32. - Italian Proverb (I think)
  33.