Value Types & Reference Types ( Why Pointer?)
April 20, 2020
Value types have exact amount of memory space they take up.On the other hand Reference types have dependency of amount of data they store, based on that they extend memory space by using pointers. It’s always 32 bits of memory for int data type, regardless of data: boolean, character, float, double, int, long, decimal are value types But why we don’t allocate memory consecutively for reference types and why we…