Comma Operator - Uses


There appear to be few practical uses of operator,.

Bjarne Stroustrup, The Design and Evolution of C++

The comma operator has relatively limited use cases. Because it discards its first operand, it is generally only useful where the first operand has desirable side effects. Further, because it is rarely used outside of specific idioms, and easily mistaken with other commas or the semicolon, it is potentially confusing and error-prone. Nevertheless, there are certain circumstances where it is commonly used, notably in for loops.

Read more about this topic:  Comma Operator

Other articles related to "uses, use":

Soil - Uses
... Waste management often has a soil component ... Septic drain fields treat septic tank effluent using aerobic soil processes ...
Linen - Flax Fiber - Uses
... Over the past 30 years the end use for linen has changed dramatically ... Linen uses range from bed and bath fabrics (tablecloths, dish towels, bed sheets, etc.), home and commercial furnishing items (wallpaper/wall coverings, upholstery ... of moccasin-style shoes (loafers), but its use has been replaced by synthetics ...
Types - Leakage Transformers - Uses
... Other applications are short-circuit-proof extra-low voltage transformers for toys or doorbell installations. ...