/* */ Click to Join Live Class with Shankar sir Call 9798158723

user-defined function in C++ ?


The functions written by the programmer or user to do the specific tasks are called user defined function or programmer defined function.

Elements of user-defined function:-

  1. function definition
  2. function call
  3. function declaration


user-defined function in C++ ?

The program module that is written to achieve a specific task is called function definition

Each function definition consists of two parts:
  • Function header:- consisting of data types of the value returned by the function the name of the function and parameters.
  • Function body:- consisting of set of instruction to do the specific activity.