Experiment 12: keywords, autos and externs


The Question: Which of the names in params.cpp are auto and which are extern names?

Exercise: Print a hard copy of your most recent version of params.cpp. Review the definitions of auto and extern, and then on that hard copy:

  1. underline each keyword,
  2. draw a circle around each auto name, and
  3. draw a box around each extern name.
(Hint: Use Appendix B of C++ An Introduction to Computing to help identify the keywords.)


Back to the Lab Exercise


Copyright 1998 by Joel C. Adams. All rights reserved.