The above program can also be written without creating a
function. What then is the advantage of creating a function
for such a task?
Answers
Answered by
1
Answer:
ADVANTAGES OF A FUNCTION ARE:
*THEY PROVIDE A WAY TO REUSE A CODE
*THEY HIDE IMPLEMENTATION DETAILS FROM THE COMPONENT USING THE PROGRAM
*THEY HELP US MANAGE COMPLEX AND BIGGER PROGRAMS INTO SMALLER MANAGEBLE AND UNDERSTANDABLE SUB PARTS.
Similar questions