Computer Science, asked by bertingtobert4357, 11 months ago

Define Constants and explain.

Answers

Answered by Abhinavraj2589
0

In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant.[a] When associated with an identifier, a constant is said to be "named," although the terms "constant" and "named constant" are often used interchangeably. This is contrasted with a variable, which is an identifier with a value that can be changed during normal execution, i.e., the value is variable. Constants are useful for both programmers and compilers: for programmers they are a form of self-documenting code and allow reasoning about correctness; while for compilers they allow compile-time and run-time checks that constancy assumptions are not violated, and allow or simplify some compiler optimizations.

Answered by mannatmarya
0

❤️HELLO❤️

❤️In programming, a constant is a value that never changes. The other type of values that programs use is variables, symbols that can represent different values throughout the course of a program. A constant can be. a number, like 25 or 3.6. a character, like a or $❤️

❤️❤️MARK ME AS BRAINLIEST ❤️❤️

Similar questions