Saturday, September 12, 2009

What is function in C programming?

Definition of function:



Function is block or part of program. When any program is very long or same code is repeating many times then we try to cut the program in different parts (or blocks) so that whole program became more understandable, easier to debug (error checking) and size of code will be lesser.



Syntax of function in c programming





Simple example of function

No comments:

Post a Comment