---
title: "Discussion on \"Simple Lambda function\" | Hashnode"
description: "Discussion on \"Simple Lambda function\". In this article, I write a c++ program using lambda.\nThis lambda function squares the input value.The lambda is assigned to a variable. By calling this variable twice, the code in the body of the lambda gets executed.\n#include <iostream>\nusing namesp..."
url: "https://hashnode.com/posts/simple-lambda-function/64da96181ef43e615dfc8870"
---

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

Discussion

# [Simple Lambda function](https://yosa.hashnode.dev/simple-lambda-function?utm_source=hashnode&utm_medium=feed)

In this article, I write a c++ program using lambda. This lambda function squares the input value.The lambda is assigned to a variable. By calling this variable twice, the code in the body of the lambda gets executed. #include <iostream> using namesp...

Aug 14, 2023 · 1 min read · yosa.hashnode.dev  
Read the article

-   [#cpp-ck4ra5k7300nlv2s1jbkdp2qh](https://hashnode.com/tag/cpp-ck4ra5k7300nlv2s1jbkdp2qh)
-   [#cpp-tutorial](https://hashnode.com/tag/cpp-tutorial)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#lambda](https://hashnode.com/tag/lambda)

## Written by

[Anusha](https://hashnode.com/@yosa)

@yosa

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
