Function is a small program which takes some input and gives us some output.
Function allows a large program to be broken down into a number of smaller self contained components, each of which has a definite purpose. It avoids rewriting the code over & over.
Breaking down of logic into separate functions make the entire process of writing & debugging easier.
Function is a self contained block of statements that is used to perform some task. A function is assigned some work once and can be called upon for the task any number of times. Every C program uses some functions, the commonly used functions are printf, scanf, main,etc.
Functions can be library functions or user defined functions. Library functions are those functions which come along with the compiler and are present in the disk.
The user defined functions are those which the programmer makes by himself to make his program easier to debug, trace. printf ( ), scanf( ), exit( ), pow( ) are library functions.
'); var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://ad.admitad.com/shuffle/289c251618/'+subid_block+'?inject_to='+injectTo; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();