December 2021
Intermediate to advanced
352 pages
9h 32m
English
A declaration introduces a name into the program. It can also reintroduce a name: multiple declarations are entirely permissible, for without them we would be unable to have forward declarations. A definition is a special kind of declaration, since it provides enough detail to be able to use the thing that has been named.
There are a surprising number of types of declaration. You can declare functions, like this:
int fn(int a);
This is a very common use of declarations. A name is being introduced, fn, which is of type “function taking an integer and returning an integer.” You can use this func-tion in your code without having to define it first. You can declare ...
Read now
Unlock full access