home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18341 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.8 KB

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