Category: Defining of functions in C++

Interested in learning C Programming? Click here...


Defining of Functions in Cpp 0

Defining of Functions in C++

A function definition has two principal components: the first line (including the argument declaration), and the body of the function In general, the first line can be written as:

where, data-type represents the data type of the item that is returned by the function, function_name represents the function name, and type 1, type 2, …, type n represents the data-type of the arguments arg 1, arg 2, …, arg n. The data-types are assumed to be of the type int if they are not shown explicitly. However, the omission of the data type is considered poor programming practice, even...