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 ...
Get Programming in C: A Practical Approach, First Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.