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 ?

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *