Computer Science, asked by anandkumarjarakhar, 3 months ago

2
27. What are the advantages of having functions in a program​

Answers

Answered by gud66
0

Answer:

Use of functions enhances the readability of a program.

Answered by MrTSR
0

Answer

Function

  • A function can be defined as a collection of statements that performs given task.

Advantage of using function

  • Useful for reusability.
  • Function eliminates redundancy (duplication).
  • Function reduces the size or length of the program.
  • Function maintains modular structure of a program.
  • Easy error detection and correction.
  • Makes writing and testing of program easier.
Similar questions