Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 11617
Total Votes: 139 votes
Average Rating: 2.81 out of 5
Category: C and C++/Basic Concepts
Description:A function is a self-contained block of statements that performs a coherent task whenever it is called. Once a function has been written to play a particular role, it can be called upon repeatedly throughout the program. The general form of a function is shown above, where the type_specifier specifies the type of the data that the function returns.The parameter list is a comma, seperated by list of variable names and their associated types that receives the values of the arguments when the function is called.