---
title: "What is the difference between ref & out parameters?"  
description: "What is the difference between ref & out parameters?"  
author: "Anchal Kesharwani"  
published: 2014-09-19  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2162/what-is-the-difference-between-ref-out-parameters  
category: "c#"  
tags: [".net", "c#"]  
reading_time: 1 minute  

---

# What is the difference between ref & out parameters?

An argument passed as ref must be initialized before passing to the method whereas out parameter needs not to be initialized before passing to a method.


---

Original Source: https://www.mindstick.com/interview/2162/what-is-the-difference-between-ref-out-parameters

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
