O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Creating Your Own Functions

The bulk of programming involves using functions: performing set tasks by calling established procedures. C, like any language, has defined hundreds of functions used to simplify common steps. These range from the standard input/output ones like scanf() and printf() to specialized mathematical functions for trigonometry.

C also provides syntax for you to define your own functions. By doing so, you can encapsulate blocks of code under one name. This allows you to repeatedly execute that code through a simple function call. This move toward more modular programming is a key aspect to developing real-world applications.

In this chapter you'll learn everything you need to know about creating and using your own ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required