0
What are advantages of function
i want 6 valid advantages
4 Respostas
+ 2
The one simple reason to use a function is so that you're writing way, way less code. It's really a time saver and stress reducer.
+ 2
for template with deffrint type but same work.
less code less rewrite the code.
can be saved in memory for cpu optimaztion
0
For reducing a time and decomposition of a problem we used functions
0
funtions are used so as to write less codes that performs huge task on your program.
example :-
A juice blender is a function and it returns blended juice.
if you put in apples into the juice blender, it returns apple juice.
if you put in oranges into the juice blender, it returns orange juice.
instead of having different juice blenders in your house, you just need one juice blender that does the task depending on the fruit you put into the juice blender.