---
title: "What is the use of return statement?"  
description: "What is the use of return statement?"  
author: "Sumit Kesarwani"  
published: 2014-01-28  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1902/what-is-the-use-of-return-statement  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is the use of return statement?

The return statement is associated with procedures (methods or functions). On executing the return statement, the system passes the control from the called procedure to the calling procedure.

## This return statement is used for two purposes :

- to return immediately to the caller of the currently executed code
- to return some value to the caller of the currently executed code.

## Answers

### Answer by Sumit Kesarwani

The return statement is associated with procedures (methods or functions). On executing the return statement, the system passes the control from the called procedure to the calling procedure.

## This return statement is used for two purposes :

- to return immediately to the caller of the currently executed code
- to return some value to the caller of the currently executed code.


---

Original Source: https://www.mindstick.com/interview/1902/what-is-the-use-of-return-statement

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
