[ Viewing Hints ] [ Book Home Page ] [ Free Newsletter ] [ Seminars ] [ Seminars on CD ROM ] [ Consulting ] Annotated Solution Guide Revision 1
0 for Thinking in C++, 2nd edition, Volume 1by Chuck Allison
2001 MindView, Inc
All Rights Reserved
[ Previous Chapter ] [ Table of Contents ] [ Next Chapter ] Chapter 88-1Create three constintvalues, then add them together to produce a value that determines the size of an array in an array definition
Try to compile the same code in C and see what happens (you can generally force your C++ compiler to run as a C compiler by using a command-line flag)
(Left to the reader) 8-2Prove to yourself that the C and C++ compilers really do treat constants differently
Create a global const and use it in a global constant expression; then compile it under