C/C++, KDEVELOP |
---|
BasicsProgram FlowFunctionsClasses and ObjectsX WindowKDevelop----------------- © Alfred Nussbaumer Updated: 09 December 2021 ----------------- |
Operators
Increment and Decrement OperatorsVery popular operators are used to increment or decrement an operand. j = i++assigns to j the unchanged value of i and than adds 1 to i. j = ++iadds 1 to i and than assigns to j the incremented value of i. You may use the decrement Operator -- in the same manner. Shorthand AssignmentsThere exist more efficient statements for arithmetic and bitwise operators: a = a + 15equals a += 15 |