Operators
 
The comma operators
 
This operator is used to link the related expression together the expression is separated by the, operator.
 
An example program showing uses of comma operator:
 
 
Output of the program:
 
 
Here firstly value 1 is assigned to a, followed by this 2 is assigned to b, and then the result of a+b is assigned to c.
 
The comma operator is often used in conjunction with a control statement called For.