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 be declared before all, at least before the usage. You can declare all given types above as a global variable or local…