Cognizant interview question

What is difference between value types and reference types in c#?

Interview Answer

Anonymous

Sep 22, 2025

In C#, value types store data directly in memory, while reference types store a reference (address) to the actual data.