Can you know about the Functions in a Programming Language like User-Defined and Inbuilt Functions?




Functions -: Function is used to divide the programs means to divide your logics into parts and define each logic into appropriate parts.


Functions are two types -: 

  1.  Inbuilt functions 
  2.  User-defined functions


Inbuilt Functions -: Those functions that are already defined in a programming language like print function, etc.


User-Defined Functions -: Those functions are defined by the user according to their needs or logic.


Examples -: 

    1. Inbuilt Function -: Take an example of inbuilt function 'printf' in C                                             programming language that is used to print.   Example  'printf' is the inbuilt function in a C programming language.

2. User-Defined Function -: User-Defined functions syntax is depend on the programming language.
To define a User-Defined Functions in C are -: 
return_type function_name(parameter list) {
//statement
}


I hope you can understand easily if you can understand easily then follow and subscribe to my blogs and share them. Otherwise, you don't follow and subscribe to my blogs.


No comments