0

What is return?

26th Jun 2016, 6:51 PM
shouvik chakraborty
1 Answer
0
return is a keyword that tells your defined function to return something after it has finished executing all lines of code in that function. So for example, if your funtion type is "int", then you need to make sure that function returns some integer value, or you code won't compile. Exception is "void" function, where we DONT need to return anything.
28th Jun 2016, 6:24 AM
Asheem Chhetri
Asheem Chhetri - avatar