A constant is exactly what it sounds like – a constant value.
We can store a constant under a fixed name, similar to a variable.
However, the difference is that you cannot change the value of a constant once it is declared.
For e.g. if you want to store the value of pi = 3.14, you would use a constant!
A constant has a value attached to it, which is assigned via its declaration.
This value is stored in the program memory.
The value attached cannot be changed during the execution of a program – which may lead to a run-time error, and this unchangeable value can be considered a literal.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Manager
Contact : serkurumsal@yandex.com
0 Comments