O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

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

5

Functions

Learning Objectives

In this chapter, you will learn about:

  • Functions

  • Advantages of using functions

  • Classification of functions as user-defined functions and library functions

  • User-defined functions

  • How to declare, define and call functions

  • Way of increasing flexibility of functions

  • Different ways of supplying inputs to a function

  • return statement

  • How to provide default inputs to a function

  • Recursion and its use to solve problems

  • Classification of recursion

  • How recursion works

  • Tower of Hanoi problem

  • Function type and pointers to functions

  • Array of function pointers

  • Passing arrays and functions to functions

  • Commonly used library functions

  • Variable argument functions

5.1 Introduction

In the previous chapters, you have seen how ...

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