From 1391626232adfb43798f04ab4fb97735386054a6 Mon Sep 17 00:00:00 2001 From: Anwesh Panda <30516780+pandaanwesh33@users.noreply.github.com> Date: Wed, 28 Nov 2018 18:24:28 +0530 Subject: [PATCH] Add my changes to recursion . (#25155) It describes the usage and importance of a base condition. --- guide/english/c/functions/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/c/functions/index.md b/guide/english/c/functions/index.md index 0ee88f6ee3..61c98db111 100644 --- a/guide/english/c/functions/index.md +++ b/guide/english/c/functions/index.md @@ -177,6 +177,8 @@ int divides(int a, int b) { ``` +NOTE: In recurssion a base codition is mandatory. Otherwise the function executes infinitely.There can be more than one base condition In the above case the bese conditions are if(n<0) and if(n==0) . + # Before you go on... ## A review * Functions are good to use because they make your code cleaner and easier to debug.