What are the advantages of functions?

 What are the advantages of functions?
Ans.- A function is a block of reusable code that is used to perform a specific action. The advantages of using functions are:
1)      Reducing duplication of code.
2)      Decomposing complex problem into simpler pieces
3)      Improving clarity of the code.
4)      Reuse of code.
5)      Information hiding.