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

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

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