answersLogoWhite

0


Best Answer

A variable is a quantity which changes its value through out the program or its lifetime.

But a constant is a quantity which does not change its value through out its life time. There are 5 basic constants.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between constants and variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between literals and variables in QBasic?

Literals are constants.


How are difference from independent variables?

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


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

Variables change, constants do not.


What is the difference between variables and constants in java?

constant is does not change the value of during the excution of programvariable it changes the value during the excution of program


Difference between variable and constants in visual basic?

"Memory locations that hold data that can be changed during project execution are called variables; locations that hold data that cannot change during execution are called constants"


What is the difference between a term and a polynomial?

A term only has variables and constants multiplied among themselves (or, in some cases, divided), such as 5xy, or -3x3. A polynomial is the sum of several such terms.


Compare and contrast variables and constants?

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.


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 difference between lower case and uppercase letters used in common math formulas?

The acceptable convention says uppercase letters are used for sets and matrices and lowercase letters are for variables, constants and vectors. Greek letters are mainly used for constants, such as pi=3.14 and e=2.718.


What is the use of constants and variables in programs?

to store values