Hi,
I know how to deal with string objects.my questions is, should I also know C-style string? or it is just another way ?.
If, I should know it, when to use string objects and when to use C-style string ?
There's not really much to know about C strings
You'll find both std::strings and C strings in many places, if you can choose I recommend std::string
The tutorials and reference sections will tell you everything you need to know about library support for both
std::string is preferred in C++ and there is generally no need to use C strings.
Regardless, you'll have to know what the C string manipulation functions do in order to understand legacy code.
C style strings in C are different than strings made from the C++ string class. Most noticeably, C-style strings should always be null terminated ('\0').
When using C++, std::string is very efficient (though arguably not as efficient in some operations as C-style strings), and generally safer. It also comes with several convenient functions that make string manipulation easier than with raw C-style strings.