Computer Science, asked by kunal259, 1 year ago

how variable differ from constant

Answers

Answered by 31shivani
1
Variable are the memory location of the data and the value of the variable can be changed but constants are the literals whose value cannot be changed in the program.
Hope it is helpful.

31shivani: plz mark as brainliest if it helped you and u r satisfied with it
Answered by anaya9
0
The difference between variables snd constants is that variables can change their value at any time but constants can never change their value. (Theconstants value is locked for the duration of the program).Constants can be very useful, Pi for instance is a good example to declare as a constant.

HOPE IT HELPS U.
MARK AS BRAINLIEST ANSWER.
THANKS.
Similar questions