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

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)