using namespace std;
char str1[10],str2[10];
cin.getline(str1,14);
cin.getline(str2,10);
cout<<strlen(str1)<<'\t'<<strlen(str2);
The Output of the above code was as follows-
1234567890123
bye
13 3
How could be the length of str1 greater than 10?