Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - const http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   const

   The  keyword "const" can be added to the declaration of an  object  to
   make the object a constant rather than a variable. For example:

        const int model = 145;
        const int v[] = { 1,2,3,4};

   Since  it  can  not be assigned to,  a constant must  be  initialized.
   Declaring  something  "const" ensures that its value will  not  change
   within its scope.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson