The variables declared inside a function retain their values between two function calls.

Man Ly

New member
The variables declared inside a function retain their values between two function calls.
A. True
B. False
 
Answer: b
Explanation: A function may declare local variables which are accessible inside the function only. These variables don’t retain their values between successive calls but are reinitialized each time the function is called.
 

Tìm kiếm

Back
Top