About 52 results
Open links in new tab
  1. What and where are the stack and heap? - Stack Overflow

    Sep 17, 2008 · What makes one faster? The stack is faster because the access pattern makes it trivial to allocate and deallocate memory from it (a pointer/integer is simply incremented or …

  2. c# - Memory allocation: Stack vs Heap? - Stack Overflow

    I am getting confused with memory allocation basics between Stack vs Heap. As per the standard definition (things which everybody says), all Value Types will get allocated onto a Stack and …

  3. c++ - Stack Memory vs Heap Memory - Stack Overflow

    Stack and heap memory is the abstraction over the memory model of the virtual memory ( which might swap memory between disk and RAM). So both stack and heap memory physically …

  4. Stack, Static, and Heap in C++ - Stack Overflow

    Nov 2, 2015 · When do I have to use dynamic allocation (in the heap) and what's its real advantage? What are the problems of static and stack? Could I write an entire application …

  5. When is it best to use the stack instead of the heap and vice versa?

    Sep 19, 2008 · If you use heap for the object, you get the as much memory the OS can provide, much larger than the stack, but then again you must make sure to free the memory when you …

  6. Which is faster: Stack allocation or Heap allocation

    Oct 2, 2008 · 550 Stack allocation is much faster since all it really does is move the stack pointer. Using memory pools, you can get comparable performance out of heap allocation, but that …

  7. a stack vs the stack and a heap vs the heap

    May 7, 2014 · The Heap is a place in the RAM where memory is stored, if it runs out of space, the OS will assign it more. For an object to be stored on the Heap it needs to be told by using the, …

  8. Does a garbage collector collect stack memory, heap memory, or …

    Jun 28, 2021 · I read lot of articles about garbage collection and almost all article tells about heap memory. so my question is "garbage collection collects stack memory or heap memory or both".

  9. Confusion about heap, stack and memory in general in C

    Sep 20, 2023 · Stack-This is the section of memory that stores all the variables and other temporary data. I'm more confident about this and there isn't much confusion here. Heap-From …

  10. Confusion between stack, call stack and memory heap in Javascript

    Jun 26, 2022 · But when it comes to memory allocation, I am confused which of the following arguments is correct: Primitive variables like string and numbers, are stored in something …