---
title: "Discussion on \"The basics of recursion in C\" | Hashnode"
description: "Discussion on \"The basics of recursion in C\". If you are new to programming, you've probably been given a task to write a factorial number algorithm. Of course, you can do it iteratively, like this:\n#include <stdio.h>\nint     iterative_factorial(int number)\n{\n    int result;\n\n    result = number..."
url: "https://hashnode.com/posts/the-basics-of-recursion-in-c/605e9b9638b0e14f092a1593"
---

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

Discussion

# [The basics of recursion in C](https://gmonteiro13.hashnode.dev/the-basics-of-recursion-in-c?utm_source=hashnode&utm_medium=feed)

If you are new to programming, you've probably been given a task to write a factorial number algorithm. Of course, you can do it iteratively, like this: #include <stdio.h> int iterative\_factorial(int number) { int result; result = number...

Mar 27, 2021 · 5 min read · gmonteiro13.hashnode.dev  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Gabriel Monteiro](https://hashnode.com/@gmonteiro13)

@gmonteiro13

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

Software Development and Data Analysis

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
