Problem with C-string.C-string cannot contain 0 as a character in them. C-strings are essentially null terminated strings; hence the 0 contained in them is considered as end of the string. They cannot hold 0 as character in them. Whenever 0 is encountered, that is considered as end of the string. This does not happen when we use string class provided by C++. Thus, not being able to store 0 as one of the characters in the array is a problem with C-strings.
|