Cognizant interview question

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

Interview Answer

Anonymous

22 Sept 2025

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