What exactly are C++ definitions, declarations and assignments?
A definition is where a value or function is described, i.e. the compiler or programmer is told precisely what it is, e.g. int foo() { return 1; } int var; // or, e.g. int var = 5; but this is clearer. A declaration tells the compiler, or programmer that the function or variable exists. e.g. … Read more