|
|
||
|
Home | Hindi | Kabir | Poetry | Workshop | BoloKids | Writers | Contribute | Search | Contact | Share This Page! Shop Online |
|||
|
Computing |
CC++ We have mentioned earlier that one of the strengths of C language is that C functions are easy to define and use. C functions can be classified into two categories, namely, library functions and user-defined functions. main is an example of user defined function. printf and scanf belong to the category of library functions. The main distinction between user-defined and library function is that the former are not required to be written by user while the latter have to be developed by the user at the time of writing a program. However the user defined function can become a part of the C program library. The use of functions in C serves many advantages:
A Multi-Function Program
Output of this program is: First the printf statement in the main program is executed. This is followed by the call to the user-defined function displayname(), which results in execution of the statements within the body of the function. We will continue with the structure of functions and the methods of using function calls in the next article. – Sachin Mehta
C/C ++ Computing |
|
|
|
|
Analysis |
Architecture |
Astrology |
Ayurveda |
Book Reviews |
Buddhism |
Cartoons | Cinema |
Computing |
Culture |
Dances |
|
Home | Hindi | Bolography | BoloKids | Kabir | Poetry | Quotes | Workshop | Writers | Contribute | Search | Contact |
|
|