Q.

Suppose a variable is passed by value to a parameter of a Sub procedure, and the parameter has its value changed inside the Sub procedure. What will the value of the variable be after the Sub procedure has executed?

A. it will have the newly modified value from inside the sub procedure.
B. its value can?t be determined without more information
C. it will retain the value it had before the call to the sub procedure
D. none of the above.
Answer» C. it will retain the value it had before the call to the sub procedure

Discussion

No comments yet