Question: Provide named constants that you really cant change the value of. You have to add a member to Variable that distinguishes between constants and variables
Provide named constants that you really can’t change the value of. You have to add a member to Variable that distinguishes between constants and variables and check for it in set_value(). If you want to let the user define constants (rather than just having pi and e defined as constants), you’ll have to add a notation to let the user express that, for example, const pi = 3.14;.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
In C you can use the const keyword to create named constants that cannot be changed once they are de... View full answer
Get step-by-step solutions from verified subject matter experts
