What is an artery operator?

Arity is the number of operands (s) that an operator can accept. For example, + , - , * and & are operators that can be used both unary (one operand) and binary (two operands). ?: - the only operator that accepts three operands (therefore it is called a ternary operator).

But what is the arity of the operator , (comma)?

+6
source share
1 answer

The comma operator is a binary operator, as evidenced by its definition in Standard C , ยง6.5.17:

 Syntax 1 expression: assignment-expression expression , assignment-expression 
+8
source

Source: https://habr.com/ru/post/904668/


All Articles