Topic-19: Types Of Function

Types Of Function:

There are 2 types of functions are present .

  1. Predefined function [Build in function]
  2. User Defined Function

What is pre-defined function ?

  • Those functions which are already available in c language such type of functions are known as predefined function .
  • Predefined function means we can call those functions directly .
  • EX:- printf() , scanf() , sqrt() , calloc() , malloc() , etc 

What is user defined function ?

  • Those functions which are created by the user such type of functions are known as predefined function .
  • We can not call userdefined functions directly , first we have to create the function then we can use them .
  • EX:- fun() , call() , sub() , x() , y() , etc 

Types of userdefined functions:

There are 4 types of userdefined functions are available .

  1. No argument no returntype(NANR)
  2. No argument with returntype(NAWR)
  3. With argument no returntype(WANR)
  4. With argument with returntype(WAWR)

Leave a Comment

Your email address will not be published. Required fields are marked *