It's just ',' - The Comma Operator
Is the comma operator in C++ a hidden gem or a lurking danger? In 'It's just ',' - The Comma Operator,' I explore its surprising dangers. Could using it lead to subtle, unnoticed errors? Letโs uncover the truth together! #cpp #cppsenioreas #cpp17 #cpp23
We all know that every โ,โ matters in this language, so I decided to talk directly about that letter today. So, how much impact can be for such a small little character? The Comma Operator This operator comes from C, where it tells the compiler to evaluate all the expressions (left to right) and to return the result of the latest evaluated expression. For example: int a, b; a = 5, b = 4, b +=โฆ













