From b660edb52d4c4ec1e8ce1cb62045826861b633c3 Mon Sep 17 00:00:00 2001 From: Papun Charan <42942897+richard937@users.noreply.github.com> Date: Wed, 12 Jun 2019 06:25:26 +0530 Subject: [PATCH] Added the limitations of return type function (#32376) Explained that in a function what kind of values can be returned. --- guide/english/c/functions/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/c/functions/index.md b/guide/english/c/functions/index.md index 8b36813418a..4cbef0c58d4 100644 --- a/guide/english/c/functions/index.md +++ b/guide/english/c/functions/index.md @@ -193,6 +193,7 @@ NOTE: In recurssion a base codition is mandatory. Otherwise the function execute * Functions take parameters to work with- if they're taking nothing, use `void`. * `return` ends the function and gives back a value. You can have several in one function, but as soon as you hit one the function ends there. * When you pass a variable to a function, it has its own copy to use - changing something in a function doesn't change it outside the function. +* A function can return any type of values, except array or any other function. * Variables declared inside a function are only visible inside that function, unless they are declared static. ### Reference