I was writing an extremely basic code of taking input from user and printing the output.
int a, b;
cout<<"Enter any two integers"<<endl;
I fooled around a bit and tried inserting a character instead of an integer to see what kind of error message will pop up.
For instance I inserted a=1 and b=w
But it instead printed an error free result: 10
I tried variants of it and learned that it replaces characters with zeroes. Why? Why doesn’t it display an error?