Ask Question

Assume that a program uses the named constant PI to represent the value 3.14. The program uses the named constant in several statements. What is the advantage of using the named constant instead of the actual value 3.14 in each statement?

+3
Answers (1)
  1. 23 June, 18:41
    0
    The advantage for the above condition is as follows:-

    Explanation:

    If a user creates a defined constant variable and assigns a value on its and then uses that variable instead of the value, then it will a great advantage. It is because when there is a needs to change the value of that variable, then it can be done when the user changes the value in one place. There is no needs to change the vale in multiple places. But if there is a value in multiple places instead of a variable and there is no constant variable, then the user needs to change the value in multiple places.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assume that a program uses the named constant PI to represent the value 3.14. The program uses the named constant in several statements. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers