Rationale

Let's study why functions are important.

We'll cover the following

Breaking your code down into discrete functions allows you to re-use 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 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