I'm new to C++, and I want learn how the following code generates output?
int main(){
int a;
char b;
cin>>a;
cin>>b;
cout<<a<<b;
}
I input 123
for a
and ,
for b
. But how come the line cout<<a<<b
give output of 123,
?