πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      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