Skip to content

Glossary: C++ Basics

Declaration

Also written: prototype, function prototype, declare

A statement that introduces a name and its type, such as `int bags = 3;`. For a function, the first line ending in a semicolon instead of a body is its declaration, also called a prototype.

Where the book teaches it

Related terms

Header fileInitialize