Addition Operator:  +

The addition operator (+) causes its two operands to be added. Both operands can be either integral or floating types, or one operand can be a pointer and the other an integer.

For more information, see logical-NOT, subtraction, and one's complement.

Example

In the following example, two integers nNumA and nNumB are added together to give result nNumC:

// Example of the addition operator
int nNumA=1, nNumB=2, nNumC;

nNumC = nNumA + nNumB;    // nNumC is now 3