The ____ is the part of a function definition that shows the function name, return type, and parameter list.
The “function header” determines the function name, return type of the function and the parameter list.
Explanation of Solution
Function header:
A function header is the part of the function definition which holds the return type of the function, function name and the parameter list.
- A semicolon should not be given at the end as it is followed by the function body.
Example for function header:
//function header
void printMessage()
{
//Display message
cout<< "Hello!";
}
In the above statement, “void” is the return type of the function “printMessage()”; whenever the function is called, the statements within the function will get executed.
Want to see more full solutions like this?
Chapter 6 Solutions
Starting Out with C++: Early Objects
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Experiencing MIS
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Starting out with Visual C# (4th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)