Tag Archives: C-Operator

Comma Operator in C

Prerequisite – Operators in C The comma operator in C is an operator that allows multiple expressions to be evaluated sequentially in a single statement. Syntax: The syntax of the comma operator is as follows: expr1, expr2, …, exprn; Here, expr1, expr2, …, and exprn are expressions that are evaluated in order from left to right. The value… Read More »

Conditional Operator in C

Prerequisite – Operators in C The conditional operator in C is a ternary operator that is used to evaluate a boolean expression and return one of two values depending on whether the expression is true or false. Syntax: The syntax of the conditional operator is as follows: condition ? value_if_true : value_if_false; Here, condition is a boolean expression… Read More »