Variables need to have same name while being passed from the primary function to the sub-function.

Hoàng Minh An

New member
Variables need to have same name while being passed from the primary function to the sub-function.
A. True
B. False
 
Answer: b
Explanation: It is dependent upon the programmer to choose the variable name while establishing a connection between a global and a persistent variable. Essentially, one may choose to keep the variable name same to avoid confusion in case of multiple sub-functions. But it is not necessary if there are a small number of sub-functions.
 

Tìm kiếm

Back
Top