+ 2
What are comma operators used for?
They can be used in two ways 1 to seperate two expressions 2 to combine a block Like,. Int a=( a=2,b=3,a+b); cout<<a; Output:5 Here, i want to know some better applications in practical programs..
2 Antworten
+ 6
The commas are used to separate your parameters, variables, ect.
0
Comma operator works from left to right, if used consequently. It assign values from left.