As far as I have read cin "ignores" spaces tab and new lines while taking input but when I try to input my name in a character array then why does it only stores the first part of my name?
//I input John Ive
char a[100];
cin>>a;
cout<<a;
//I get John as output