📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    âš¡ Azaadi sale - Celebrate Independence Day with Flat 55% Off On all courses! 13 to 17 Aug âš¡ Enroll Now

    Question

    What happens to the memory allocated to a local variable

    when the function exits?
    A The memory is deallocated immediately. Correct Answer Incorrect Answer
    B The memory is deallocated when the program terminates. Correct Answer Incorrect Answer
    C The memory remains allocated until the program is restarted. Correct Answer Incorrect Answer
    D The memory is deallocated when the variable is reassigned. Correct Answer Incorrect Answer

    Solution

    The memory is deallocated immediately.

    Practice Next

    Relevant for Exams:

    ask-question

    Not sure which exam is best for you Talk to our expert

    Get My Free Call