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