answersLogoWhite

0

In Computer Programming and Mathematics, variables and constants are ways to refering to a value.

For example X=1 and Y=2

The difference being, variables are meant to be arbitary and changable, while constants are meant to be fixed and unchangable.

For example, there is no reason for the value of Pi to change. So the value of Pi would best be represented by a constant.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What are constants and how are they are different from variables?

Variables change, constants do not.


Why are constants different from independent variables?

Constants are fixed values that do not change during an experiment or analysis, providing a stable reference point. In contrast, independent variables are those that are deliberately manipulated or varied to observe their effect on dependent variables. While constants help maintain the integrity of an experiment by controlling for external influences, independent variables are essential for testing hypotheses and determining causal relationships. Thus, the key difference lies in their roles: constants remain unchanged, while independent variables are actively adjusted.


What are constants and how they are different from variables?

Constants are fixed numbers that never change, they always stay the same. Variables are number that can change, they 'Vary'.


What variables that do not change?

The ones called constants.


What are variables and constants in algebra?

ask your father


What is the use of constants and variables in programs?

to store values


How are constant variables different from independent variables?

Constants stays the same independent variables is the variable that is being manipulated


How are difference from independent variables?

Constants stays the same independent variables is the variable that is being manipulated


How are constants and variables different?

Constants are values that remain constant and cannot be changed once they are assigned a value. Variables, on the other hand, can have different values assigned to them and their value can be changed throughout the program. Constants provide a fixed value, while variables provide flexibility and allow for changes in value.


What are variables that arent constant called?

They are called constants. easy as that!:)>


What is the difference between literals and variables in QBasic?

Literals are constants.


What does the constant variable do?

Variables are not constants. The terms have opposite meaning.