Mark As Completed Discussion

Build your intuition. Click the correct answer from the options.

Which of the following is true about stack memory in C++?

A) Stack memory is automatically allocated and deallocated B) Stack memory is larger than heap memory C) Stack memory is used for dynamically allocated variables D) Stack memory is managed manually

Click the option that best answers the question.

  • A) Stack memory is automatically allocated and deallocated
  • B) Stack memory is larger than heap memory
  • C) Stack memory is used for dynamically allocated variables
  • D) Stack memory is managed manually