Memory Allocation for Variable Declared in Class

前端 未结 4 740
灰色年华
灰色年华 2021-02-06 03:30

As Value type variable allocates memory in Stack where as Reference Type allocates it in Heap.

So how the memory allocated when a value type variable(eg int i =4;) is d

4条回答
提交回复
热议问题