What is the significance of having function in a program
Answers
Answered by
8
Answer:
Functions and procedures are the basic building blocks of programs. They are small sections of code that are used to perform a particular task, and they are used for two main reasons. The first reason is that they can be used to avoid repetition of commands within the program.
Hope this may help you.....................
Answered by
2
function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.
Similar questions