fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int operand_1, operand_2;
  6. int expression_value = (operand_1 = 1, operand_2 = 100);
  7.  
  8. std::cout << "operand 1: " << operand_1 << '\n';
  9. std::cout << "operand 2: " << operand_2 << '\n';
  10. std::cout << "expression value: " << expression_value << '\n';
  11. }
  12.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
operand 1: 1
operand 2: 100
expression value: 100