+ 2

make me understand function

function and array. i need to understand how to use it while programming.

8th Dec 2016, 4:49 PM
Anurag Nihal
Anurag Nihal - avatar
1 Resposta
+ 1
a function is something you can execute. You could writte every simple without functions (exception: the maim func). for example instead of calculating a sum and printing it out you can make a func that does exactly this and every time you want to do that you call the func with this two numbers as arguments instead of writting the calculation and the output. so you don't have to write too much code. I hope it was helpfull and sorry for my bad english. greetings from Switzerland
8th Dec 2016, 6:30 PM
Manuel Sonder
Manuel Sonder - avatar