home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.centerline.com!noc.near.net!news.bbn.com!papaya.bbn.com!cbarber
- From: cbarber@bbn.com (Chris Barber)
- Newsgroups: comp.lang.c
- Subject: Re: Question to test general C knowledge
- Message-ID: <4232@litchi.bbn.com>
- Date: 14 Dec 92 19:55:32 GMT
- References: <Bz0A46.Cvu@watserv1.uwaterloo.ca> <Bz11Iv.DM7@netnews.jhuapl.edu> <scott.40.724096473@kronos.com>
- Organization: BBN Systems and Technology, Inc.
- Lines: 32
-
- In article <scott.40.724096473@kronos.com> scott@kronos.com (Scott Riegelhaupt-Herzig) writes:
- >Or, one of my favorites:
- >Name the four NULLs in C.
- >
- >(They are, of course, NULL character, NULL pointer, NULL string, and null
- >statement.)
-
- IMHO, this is exactly the kind of question one should *not* ask. What
- particular benefit would a programmer gain from being able to enumerate
- this list of replies? I think that the most likely person to be able
- to answer all four correctly would be someone who was taught the
- "four NULLs" in a C course and was able to spit them out from memory.
- The last person I would want to hire is the kind of guy who memorizes
- definitions and rules without any regard to their rationale.
-
- Besides, only two of your answers could be called "NULL" without
- qualification:
-
- '\0' NUL or null character
- (void *)0 NULL or null pointer
- "" null string or empty string
- ; null statement or empty statement
-
- Neither the null string nor the null statement would be known simply by the
- single word "null". Furthermore, many may be perfectly familiar with the
- concepts but may know these as the "empty string" and the "empty statement".
- What you are measuring here is whether someone learned C from the
- same book that you did, not whether they actually have a deep understanding.
-
- --
- Christopher Barber
- (cbarber@bbn.com)
-