+ 2

Functions concept is a bit confusing how can they be used as arguments of other functions.

12th Feb 2018, 12:19 PM
JAAHNAVI DUVVANA
JAAHNAVI DUVVANA - avatar
3 Answers
+ 1
If they return something (integer, string,...) they can be handled like a variable which value is dependent on the algorithm of it. int func1(){ return 5; } now func1() could be used as an integer with value 5
12th Feb 2018, 12:33 PM
Alex
Alex - avatar
+ 1
thank you
12th Feb 2018, 1:20 PM
JAAHNAVI DUVVANA
JAAHNAVI DUVVANA - avatar