+ 1

what purpose we use return statement, what are the necessities?

please someone explain me easily

7th Sep 2016, 3:12 PM
Vijay Kumar
Vijay Kumar - avatar
2 odpowiedzi
+ 1
A function doesn't have to return anything. But, if you need to use what that particular function does in later part of code, you need to use return to extract a value out of it.
7th Sep 2016, 8:29 PM
Sachin
Sachin - avatar