---
title: "What is the difference between ref and out parameter in c#?"  
description: "What is the difference between ref and out parameter in c#?"  
author: "Pradeep kumar Patel"  
published: 2019-10-29  
canonical: https://answers.mindstick.com/qa/82435/what-is-the-difference-between-ref-and-out-parameter-in-c-sharp  
category: "programming language"  
tags: ["c#", ".net programming"]  
reading_time: 1 minute  

---

# What is the difference between ref and out parameter in c#?

What is the [difference](https://www.mindstick.com/blog/398/difference-between-object-type-and-var-type) between [ref](https://www.mindstick.com/interview/217/what-is-the-difference-between-ref-out-parameters) and out [parameter](https://www.mindstick.com/blog/450/parameter-class-in-c-sharp) in c#?


---

Original Source: https://answers.mindstick.com/qa/82435/what-is-the-difference-between-ref-and-out-parameter-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
