Assignment operators are used to assign the result of an expression to a variable. In C programming = is used as an assignment operator.
In C programming there are some extended forms of assignment operators. Let’s understand by example.
C has two very useful operators i.e increment (++) and decrement (--) operators.
Conditional Operators in C is also known as ternary operator and represented as the pair of ? :
In the conditional operator, the condition statement decides which expression will be executed. There can be two scenarios!
If the condition statement is true then expression1 will be executed and the value of the whole expression will be the value of expression1.