ShriRam Changed status to publish October 1, 2022
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times.
1.Functions avoids the rewriting the same code again and again in our program.
2.Functions can be called any number of times from any place of our program.
3.When a program is divided into functions, then any part of our program can easily be tracked.
4.Functions provide the reusability concept, i.e., it breaks the big task into smaller tasks so that it makes the C program more understandable.
ShriRam Changed status to publish October 1, 2022