Primitive Data Type In C Sharp Day 20
Lecture 20 : Primitive Data Type In C Sharp Primitive Data Type : The primitive types are predefined by the language and they are named by reserved keywords. They represent the basic types of the language. Stack : A stack is a special area of computer's memory which stores temporary variables created by a function. In stack, variables are declared, stored and initialized during runtime. It is a temporary storage memory. When the computing task is complete, the memory of the variable will be automatically erased. The stack section mostly contains methods, local variable, and reference variables. Heap : The heap is a memory used by programming languages to store global variables. By default, all global variable are stored in heap memory space. It supports Dynamic memory allocation. The heap is not managed automatically for you and is not as tightly managed by the CPU. It is more like a free-floating region of memory. Difference between Stack & Heap...
Comments
Post a Comment