When you create an instance of a class with the new
operator, memory gets allocated on the heap. When you create an instance of a struct with the new
operator where does the memory get allocated, on the heap or on the stack ?
When you create an instance of a class with the new
operator, memory gets allocated on the heap. When you create an instance of a struct with the new
operator where does the memory get allocated, on the heap or on the stack ?