0

What is the meaning of 'return'. that is an other command of print?

30th Aug 2016, 1:56 PM
sai charan
sai charan - avatar
1 Réponse
0
Nope. They are completly different. 'Print' shows a value (which comes from a constant, a string literal, a variable or a function) on the std output. While 'return' retrieves a value from inside of a function and makes it available outside of it. This value can be considered as the result of the function. You will store it in a variable most of the time (and sometimes print of course).
24th Sep 2016, 5:07 PM
Daniel