Ask Question
27 October, 13:00

Why do local variables lose their values between calls to the function in which they are

defined?

+2
Answers (1)
  1. 27 October, 16:21
    0
    Variables which are declared within a function are called Local variables. They are named local because they are used locally only means they cannot be used outside the function in which they are declared. These local variables exist in the memory till the function execution starts and are deleted when the execution of function ends. Hence they lose their value between calls to the function in which they are declared.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Why do local variables lose their values between calls to the function in which they are defined? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers