From 642865b967144c4930872d474114ca4d10da8712 Mon Sep 17 00:00:00 2001 From: richard937 <42942897+richard937@users.noreply.github.com> Date: Mon, 29 Oct 2018 23:06:20 -0700 Subject: [PATCH] Added the limitations of return type function 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 0cd067e930c903..99365437f2916c 100644 --- a/guide/english/c/functions/index.md +++ b/guide/english/c/functions/index.md @@ -123,4 +123,5 @@ If the speed of the program is important then you may not want to use recursion * 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.