Category: Accessing of functions in C++

Accessing of Functions in Cpp 0

Accessing of Functions in C++

A function can be accessed (i.e., called) by specifying its name, followed by a list of arguments enclosed in parentheses and separated by commas as shown below. function_name(int a, int b); If the function call does not require any arguments, an empty pair of parentheses must follow the name of the function as shown below. function_name(); The function call may be a part of a single expression (such as an assignment statement), or it may be one of the operands within the more complex expression as shown below. int returnedvalue = function_name(); int c = 3 * function_name() + 5;...