Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) function definition

 

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.

 

 

#include <iostream>

 

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.

 

 

 

 

 

References

[0]          ...

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.