Functions in C Language
Functions A function is a self contained block of code that does some specific task. A function definition has a header and body. Header A header of a function is made up of · Return type: It is the data type of the value being returned by the function. If a function has no value to return. It has the return type as void. · Name : It is the name of the function by which you call it. The name of a function is its address. · Argument List : A function can have zero or more parameters known as formal parameters, separated by commas in case it is more than one in number. These formal parameters take values form the calling body so that it can perform the specific tasks on it. These arguments are enclosed within the pair of parenthesis. Body Body of a function contains the actual logic to perform certain task. It may ret...