what is the difference between constant and variable ? Define.
Answers
Answered by
0
The difference between variables and constants is that variables can change their value at any time but constants can never change their value. (The constants value is lockedfor the duration of the program). Constants can be very useful, Pi for instance is a good example to declare as a constant.
Answered by
0
Variable : A variable is denoted by a Letter of English alphabet and that can take any value .
- Example : x, y, a, b, z, c, etc
Constant : The Values of constant remain same throughout the Situation i.e value of constant doesn't change in a problem
- Example : 1, 2, 3, 4, 5, etc
Similar questions
Hindi,
6 months ago
English,
6 months ago
Math,
1 year ago
English,
1 year ago
India Languages,
1 year ago
India Languages,
1 year ago