Ask Question
6 April, 19:30

Local variables:

A. Lose the values stored in them between calls to the method in which the variable is declared

B. May have the same name as local variables in other methods

C. Are hidden from other methods

D. All of the above

+3
Answers (1)
  1. 6 April, 23:09
    0
    The correct answer for the given question is Option (D).

    Explanation:

    A local variable is those which are declared inside the method. The scope of the local variable is local means it will access only that function. They are not accessed outside the function.

    There are some features of Local variable which are given below:

    The local variable is hidden from the other function. The local variable sometimes have same name as the global variable

    So all Option (a), Option (b) and Option (c) are correct.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Local variables: A. Lose the values stored in them between calls to the method in which the variable is declared B. May have the same name ...” 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