Skip to content

Declarations and Definitions ​

A function declaration introduces a signature to the compiler, while a function definition provides the implementation.

cpp
int square(int value);

int square(int value) {
  return value * value;
}