I made this code and it should be invalid
#include<iostream>
using namespace std;
int main()
{
int a,b;
a=3,014; //invalid
b=(3,014); //invalid
cout<<a<<endl<<b;
}
Output:
3
12
However both the invalid statements give valid results. But the result should be 3014. It is changed. Why does this happen?