Unity Interview Question

Describe the difference between a struct and a class in C#.

Interview Answer

Anonymous

Dec 20, 2020

A struct is a value type allocated on the stack, and a class is a reference type allocated on the heap.