A function in programming is a segment that
groups a number of program statements to perform specific task.
A c program has at least one function [main()].
Without main(), there is technically no C program.
Types
of Function
Basically, there
are two types of functions in C on basis of whether it is defined by user or
not.
· Library Function
·
User Defined
Function
Library
Function
Library functions are the in-built function in C
programming system.
For Example:
main()
- The execution of every C program
starts from this main().
printf()
- prinf() is used for displaying
output in C.
scanf()
- scanf() is used for taking
input in C.
Visit this page to learn more about library
function in C programming.
User Defined
Function
C provides programmer to define their own function
according to their requirement known as user defined functions.
No comments:
Post a Comment