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