answersLogoWhite

0


Best Answer

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

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Compare and contrast variables and constants?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

Variables change, constants do not.


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


Compare and contrast legally blonde?

Compare and contrast it with what?


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 is the difference between literals and variables in QBasic?

Literals are constants.


What are variables that arent constant called?

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


What does the constant variable do?

Variables are not constants. The terms have opposite meaning.