---
title: "Difference between Value Types Reference Types?"  
description: "Difference between Value Types Reference Types?"  
author: "Anonymous User"  
published: 2018-04-27  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/23391/difference-between-value-types-reference-types  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Difference between Value Types Reference Types?

## Let us look at the differences between both the data types:

## Value Types

They are allocated on stack.

It contains value.

Struct is value type.

## Reference Types

They are allocated on heap.

It contains the address of the memory location.

Classes and Interfaces are reference types.

## Answers

### Answer by Anonymous User

## Let us look at the differences between both the data types:

## Value Types

They are allocated on stack.

It contains value.

Struct is value type.

## Reference Types

They are allocated on heap.

It contains the address of the memory location.

Classes and Interfaces are reference types.


---

Original Source: https://www.mindstick.com/interview/23391/difference-between-value-types-reference-types

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
