Computer Science, asked by PragyaTbia, 1 year ago

Explain advantages of use of function?

Answers

Answered by VemugantiRahul
10
Hi there!
Here's the answer :

In C, the idea of top-down approach is done by using functions.

Advantages:

• Problem can be factorised into understandable and manageable steps

• Function provide a way to reuse code.

• We use the function to protect data.

:)
Hope it helps

VemugantiRahul: Mark brainliest if it was helpful
Answered by lovingheart
4

When the set of lines of codes are repeated frequently in many different places, those can be written in one place as a function and those can be called anytime we want. Though it looks similar to a looping, it is not actually same.

If you place repeated codes in loop, it can get executed in only one place, if you want that code to be repeated in many different places, then function is the best approach. It actually reduces the number of lines of codes in the program.

Similar questions