Please explain me why sizeof("hello") return value 6. I think the string length of hello is only 5. Thank in advance!
cout << sizeof("hello");
Just to add a bit,
sizeof is not the same thing as string length.
The literal "hello" is of type char[6] because, as janra said, the null terminator is implicitly included.