Chapter 3

Recursion

Chapter Outline

3.1 INTRODUCTION TO FUNCTION

A function is a block of statements that can be used to perform a specific task. Fig. 3.1 describes the various parts of the function. A function has the following parts:

  1. Function prototype declaration
  2. Definition of a function (function declarator)
  3. Actual and formal arguments
  4. Return statement
  5. Invoking function.

3.1.1 Function Prototypes

We use many built-in functions. The prototypes of these functions ...

Get Introduction to Data Structures in C 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.