Topic: const int const number; not a pointer what does it mean?


Author: "alvin" <alvin@cyberramp.net>
Date: 1998/01/11
Raw View

Q1:
  const int const num;

  What does this mean when num is not a pointer?

Q2:
  const void method1() {}

  What does const mean when applied
     to a void return value?

Q3:
  int method1() const {}

   What does const mean when
     used here?

Thanks,

Alvin B.



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]