#include <iostream> using namespace std; int main() { int a,b; a = (1, 2); cout << a << endl; b = 1, 2; cout << b << endl; }
Standard input is empty
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
2 1