Pergunta de entrevista da empresa Unity

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

Resposta da entrevista

Sigiloso

20 de dez. de 2020

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