O'Reilly logo

Introduction to Data Structures in C by Ashok Kamthane

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 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 ...

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