Rationale
Let's understand the importance of functions.
We'll cover the following
Breaking your code down into discrete functions allows you to reuse code in intelligent ways, and to make your code more efficient overall. You can use functions written by other people (by linking them to your programs) and avoid having to write everything from scratch yourself.
Writing functions to perform common tasks means that you can essentially write your own meta-language. For example, if you have functions already written to perform these tasks, your C program might look like this:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy