title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
C++ Built-in Operators, Precedence and Associativity | Microsoft Docs |
11/04/2016 |
|
language-reference |
|
|
95c1f0ba-dad8-4034-b039-f79a904f112f |
13 |
mikeblome |
mblome |
ghogen |
The C++ language includes all C operators and adds several new operators. Operators specify an evaluation to be performed on one or more operands.
Operator precedence specifies the order of operations in expressions that contain more than one operator. Operator associativity specifies whether, in an expression that contains multiple operators with the same precedence, an operand is grouped with the one on its left or the one on its right. The following table shows the precedence and associativity of C++ operators (from highest to lowest precedence). Operators with the same precedence number have equal precedence unless another relationship is explicitly forced by parentheses.