Comma operator : Comma operator « Operators statements « C++ Tutorial






#include <iostream> 
using namespace std; 
 

int main() 
{ 
  int i, j; 
 
  j = 10; 
 
  i = (j++, j+100, 999+j); 
 
  cout << i; 
 
  return 0; 
}
1010








3.4.Comma operator
3.4.1.Comma operator
3.4.2.Demonstrating the comma operator
3.4.3.The Comma Operator: The value of a series of expressions is the value of the right most
3.4.4.Using the continue statement with do while loop