---
title: "Discussion on \"The Magic Behind 'Return' Statements\" | Hashnode"
description: "Discussion on \"The Magic Behind 'Return' Statements\". In programming, a \"return\" statement is like a way for a function to say, \"Here is my answer,\" and it helps the program know what to do next. Let's see a simple C++ program that returns 0 and discuss further:\n#include <iostream>\nusing namespace std; ..."
url: "https://hashnode.com/posts/the-magic-behind-return-statements/64c7191ca618ffafb8bc621c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Magic Behind 'Return' Statements](https://realjakia.hashnode.dev/the-magic-behind-return-statements?utm_source=hashnode&utm_medium=feed)

In programming, a "return" statement is like a way for a function to say, "Here is my answer," and it helps the program know what to do next. Let's see a simple C++ program that returns 0 and discuss further: #include <iostream> using namespace std; ...

Jul 31, 2023 · 1 min read · realjakia.hashnode.dev  
Updated Sep 28, 2023  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#cpp-ck4ra5k7300nlv2s1jbkdp2qh](https://hashnode.com/tag/cpp-ck4ra5k7300nlv2s1jbkdp2qh)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#beginnerfriendly](https://hashnode.com/tag/beginnerfriendly)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Jakia Binte Amin](https://hashnode.com/@realJakia)

@realJakia · Bangladesh

  
[View profile](https://hashnode.com/@realJakia)

Programmer | Web developer | MERN stack expert | Blogger

Programmer | Tech Writer | Web developer | MERN stack expert

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
