What is the difference between stack and heap memory?

Junior C#

Answer

Stack: Stores value types and method call information.

Heap: Stores reference types and dynamically allocated objects.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice