---
title: "Discussion on \"Recursion\" | Hashnode"
description: "Discussion on \"Recursion\". A function calls itself until specific condition is met. Example:\n\nvoid print(int now, int target){\n    if(now==target) return;\n    cout<<now<<endl;\n    print(now+1, target);\n}\nint main(){\n    print(1,11);\n    return 0;\n}\n\nWhat if there’s no if condi..."
url: "https://hashnode.com/posts/recursion/68d79acd5b7a2486bcb02a6f"
---

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

Discussion

# [Recursion](https://learning-dsa.hashnode.dev/recursion?utm_source=hashnode&utm_medium=feed)

A function calls itself until specific condition is met. Example: void print(int now, int target){ if(now==target) return; cout<<now<<endl; print(now+1, target); } int main(){ print(1,11); return 0; } What if there’s no if condi...

Sep 27, 2025 · 4 min read · learning-dsa.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#dsainc](https://hashnode.com/tag/dsainc)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#backtracking](https://hashnode.com/tag/backtracking)
-   [#backtracking-algorithm](https://hashnode.com/tag/backtracking-algorithm)
-   [#print-all-subsequences](https://hashnode.com/tag/print-all-subsequences)

## Written by

[Rajesh Gurajala](https://hashnode.com/@rajesh6)

@rajesh6

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

DEVOPS RELATED

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
