A Function is a separate module,sub-program procedure which is usually written after the main function and is capable of performing a small complete independent job. Function serve two purposes-: They allow a programmer to say ," This piece of code does a specific job which stand by itself and should not be mixed up with anything else. They make a block of code reuse-able , since a function can be reused in different context ,without repeating parts of the program text. In C,there are two types of function-: Pre-defined/ Library Function -: They are the parts of the C Language,means they are present in any of the various headers,that can be included in the program. Examples -: The function sqrt() and pow() are present in <math.h> The function getch() and clrscr() are present in <conio.h> User-define Function -: The function which are created by the user to accomplish a particular task...
" The Techprogramiz is a computer science portal for C language. It contains well written, well thought and well explained C programming articles,basic to advance level"