Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A function definition is consists of (a copy of) a function declaration and this function's body.
Function definitions are commonly found in implementation (.cpp) files.
void SayHello()
{
std::cout << "Hello\n";
}
The first line of the function SayHello is (a copy of) the function declaration. The part between the accolades is the function body.
[0] ...
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.