Comma operator ( , )
- Evaluate of comma operator- Left to right.
- Uses of comma operator as following :
- Multiples declaration
- Multiples initialization
- Multiples variation
- Multiples statement
- Example of comma operator
- int x=0,y=1,z=2;
- for(x=0 , y=1, z=2 ; condition1 , condition2 ;increment/decrement)
No comments:
Post a Comment