Functions in C++ Tutorial
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 12365
Total Votes: 139 votes
Category: C and C++/Basic Concepts
Submitted on: 2008-04-16 01:41:23
Submitted By: Shekhar
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. More detail...