Tag Archives: c++

Constants in C++

In C++, you can declare variables as constants. Such a variable need to be initialized with a constant value when it is declared. Constant variable cannot be assigned other values. But why do we need such a feature in the programming language? Why not handle this limitation in a document around it? Say, declare a […]

Read More