Symbolet = er c-ligestillingsoperatøren?
Operators in C and C++
Mange af de operatorer, der indeholder sekvenser af flere tegn, har fået "navne", der er bygget op af operatørnavnet for hvert tegn. F.eks. kaldes += og -= ofte for plus lige(r) og minus lige(r) i stedet for de mere mundrette "tildeling ved addition" og "tildeling ved subtraktion". Bindingen af operatorer i C og C++ er specificeret (i de tilsvarende standarder) ved hjælp af en faktoriseret sproggrammatik i stedet for en præcedenstabel. Dette skaber nogle subtile konflikter. I C er syntaksen for et betinget udtryk f.eks:
Operators in C and C++
Many of the operators containing multi-character sequences are given "names" built from the operator name of each character. For example, += and -= are often called plus equal(s) and minus equal(s), instead of the more verbose "assignment by addition" and "assignment by subtraction". The binding of operators in C and C++ is specified (in the corresponding Standards) by a factored language grammar, rather than a precedence table. This creates some subtle conflicts. For example, in C, the syntax for a conditional expression is:
Operators in C and C++