Define Functions with arguments and no return values
The calling function will read a data from the terminal and pass it on to called as function and this will work good as the calling function can check the validity of data, if essential, before it is handed over to the called a function.
The nature of data communication among the calling function and called function with arguments with no return values is shown below.
Instance
area(l,b,h);
The arguments 1, b, h are called as the formal parameters and the calling function can send values to these arguments using function calls and the function call area (3,4,5) would send the values 3,4,5 to the function area (l,b,h) and assign 3 to l, 4 to b, 5 to h and the values 3,4,5 are the actual parameters which become the values of the formal arguments inside the called function.
The real and the formal arguments should match in number, and order when a function call is made, only a copy of the values of actual arguments is passed into the called function.