Q7. Local storage is created by
(A) Callee
(B) Caller
(C) Both Caller and Callee
(D) None of the other options
Answers
Answered by
1
Answer:
both caller and calle answer (C)
Answered by
0
Answer:
The correct answer is option (A)
Local storage is created by Calle
Explanation:
Local storage is defined as the storage that is accessible only within the scope of a particular function.
- When a function calls another function inside the program it is called the caller who initiates the call.
- The other function is called the calle.
- Functions are invoked by using one of the two ways:
- CALL BY VALUE METHOD
- CALL BY REFERENCE METHOD
- In Call By Value Method, Local storage is created by the Calle for the formal parameters. Those parameters' value is only valid within the scope of that particular method.
- In Call By Reference Method, there is no need to create any local storage because we pass the original address of the parameters. So whatever, changes are made are directly reflected in original values.
- Only the calle function can create the local storage for the computation performing purpose.
- The caller function does not create local storage since it is available throughout the program.
#SPJE
Similar questions