Comma operator
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
1. int x=0,y=1,z=2;
2. for(x=0 , y=1, z=2 ; condition1 , condition2 ;increment/decrement)
2. for(x=0 , y=1, z=2 ; condition1 , condition2 ;increment/decrement)
0 comments:
Post a Comment
Dont Forget for Commets