stack-memory
Getting the start address of the current process's heap?
I am exploring the lower level workings of th开发者_Go百科e system, and was wondering how malloc determines the start address of the heap. Is the heap at a constant offset or is there a call of some s[详细]
2022-12-28 04:56 分类:问答Fields of class, are they stored in the stack or heap?
I saw a question yesterday which raised (for me) another question. Please look at the following code:[详细]
2022-12-25 04:51 分类:问答When object is constructed statically inside a function, would it be allocated on the heap or on the stack?
if i have the foll开发者_运维知识库owing code: for (...) { A a; } would a be allocated on the heap or on the stack?When you say:[详细]
2022-12-20 21:06 分类:问答Program stack and heap, how do they work?
I know that every running process has pages associated with it in virtual memory and few of them will be loaded into main memory as required. I also know that program will have a stack and also a heap[详细]
2022-12-16 05:12 分类:问答c# structs/classes stack/heap control?
so in c++ it\'s very easy. you want whatever class/struct to be allocated on the heap, use new. if you want it on the stack, don\'t use new.[详细]
2022-12-16 01:03 分类:问答-
Returning a value type from a property
I\'m getting confused with what happens on the stack and heap in respect to value type properties in classes.[详细]
2022-12-15 15:03 分类:问答 C/C++ maximum stack size of program on mainstream OSes
I want to do DFS on a 100 X 100 array. (Say elements of array represents graph nodes) So assuming worst case, depth of开发者_如何学编程 recursive function calls can go upto 10000 with each call taking[详细]
2022-12-13 02:51 分类:问答Does stack size grow during runtime?
I wonder if stack size can grow like heap does du开发者_开发百科ring runtime?The amount of stack used certainly increases, as you allocate local variables and make function calls. Whether the stack\'s[详细]
2022-12-10 06:11 分类:问答Creating array of objects on the stack and heap
Consider the following code: class myarray { int i; public: myarray(int a) : i(a){ } } How can you create an array of objects of myarray on the stack and how can you create an array of objects on[详细]
2022-12-09 04:26 分类:问答Stack vs. Heap in .NET [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2022-12-08 15:59 分类:问答