Domanda di colloquio di Unity

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

Risposta di colloquio

Anonimo

20 dic 2020

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