Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous
Next: Constants Up: C++ Summary Previous: Comments

Identifiers & declarations

Identifiers are a sequence of letters, digits and underscores starting with a letter, and with no restriction on length. They are used to give a name to a user-defined object, e.g. variable, struct, function, etc. Every name in a C++ program must be declared before it is used. int v1, v2; in the program above declares two integer variables with identifiers v1 and v2.
© Cambridge University Engineering Dept
Information provided by Tim Love
2006-12-08