Sid Ahmed

Sid Ahmed

  • 1.9k
  • 18
  • 148

Heap or Stack ?

Jun 5 2019 5:03 AM
Suppose the following declaration :
 
List<int> Ints = new List<int> { 1, 2, 3 }; 
 
List<T> is a reference type
int is value type
 
How the variable "Ints" is stored in memory ?
 

Answers (4)