---
title: "What are value types and reference types?"  
description: "What are value types and reference types?"  
author: "Sumit Kesarwani"  
published: 2013-11-13  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/1820/what-are-value-types-and-reference-types  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What are value types and reference types?

Value types are stored in the Stack.

Examples: bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.

Reference types are stored in the Heap.

Examples: class, delegate, interface, object, string.

## Answers

### Answer by Sumit Kesarwani

Value types are stored in the Stack.

Examples: bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.

Reference types are stored in the Heap.

Examples: class, delegate, interface, object, string.


---

Original Source: https://www.mindstick.com/interview/1820/what-are-value-types-and-reference-types

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
