Functions used in C programming

C program is a nothing but a collection of functions. Now, what is meant by function?…

A function is defined as a self contained block of statements that perform a specific task of some kind or it is simply a group of statements that together perform a task.

So, functions are classified into two types : library functions and user defined functions

Library functions are that type of functions which are not required to be written by us. We can directly use them in our programs. They are the functions that are predefined by c library.

Ex. : printf (), scanf (), strcat () etc.

User defined functions are functions that are developed by user while writing programs. User defined function can become a part of library function later. These functions are made for saving time and space.

Leave a comment

Design a site like this with WordPress.com
Get started