C++ is really awesome programming language that has many options to use variables in a way which can make your C++ App use less memory and app size. In this post, we explain what are a constant, a constant expression and generalized constant expressions in modern C++.
What is the const constant keyword in modern C++?
Let’s remember that, in C++ there are two ways to define constants.
Constants
In C++ we learnt that a variable is a container (storage area in memory location) to hold data (integer numbers, floating numbers, strings etc.), Also we explain that the placement of variable definitions as given above is very important. Generally they should…