What is a function? How is it useful?
Question : What is a function? How is it useful?
A function is a named block in a program which has some certain working. Whenever you call this it performs all its working. It reduces the complexity and reduces the labour of writing same code again and again.