Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
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