In most current programming languages, a variable or constant that is declared in a module is in scope in that module.
Why are constants used in programming?
- Constants are data values that remain the same each time a program is run.
- It is not envisaged that constants' choice change. Actual values set into the source code are known as literal constants.
- When a value must be made available to the program but cannot change while the program is running, constants are employed.
- A variable is a designated storage space that a computer maintains in memory. By giving it a name, you can access it quickly across the entire application.
- Any variable whose value is constant throughout your program cannot be updated or changed. At the time of its declaration, a constant variable must be initialized.
To learn more about constant, refer to:
https://brainly.com/question/28544433
#SPJ4