some days ago I was at a loss with string, and some guys explained it to me. but when I test string stuffs in my compiler I am struck a second time, and I really need any of ur ideas.
at first, I tested this in my compiler:
using namespace std;
cout << sizeof(s) << endl;
cout << s << endl;
Finally, it input:
// it input nothing about s;
my question is why the size of my string seemed like this above ?
the size of s should be 5 not 4, yes ?
And why it show me nothing with s ? my book said it should be a '\0', it that always invisible ?
any reply will be helpful,thanx in advance.