+ 2
Whta's the difference btn returning a value and actually printing out the value on the user computer screen ?
As referred to Methods .
4 odpowiedzi
+ 2
@nedim
thanks
+ 1
Both are used for different proposes printing used for display result on screen. Returning value used for further computation by calling method.
0
Oh god this is the 3rd time im answering to this question:
When you return a value without printing it, that value will only be seen by the computer. Think of it as some sort of feedback. When you call the function you are expecting it to give you(the computer) something.
When you print the function, it will display the RETURNED VALUE. so print is taking that value and printing it on the console.
0
return value only seen by complier and print display the value