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

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

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