Question

What happens to the memory allocated to a local variable when the function exits?

A The memory is deallocated immediately.
B The memory is deallocated when the program terminates.
C The memory remains allocated until the program is restarted.
D The memory is deallocated when the variable is reassigned.
Practice Next

Relevant for Exams:

Hey! Ask a query