fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b;
  6. a = (1, 2);
  7. cout << a << endl;
  8. b = 1, 2;
  9. cout << b << endl;
  10. }
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6: warning: left-hand operand of comma has no effect
prog.cpp:8: warning: right-hand operand of comma has no effect
stdout
2
1