0

<cstring> or<string>, C++?

What is difference between <cstring> and <string>, C++?

11th Mar 2017, 11:05 AM
Yahav Mizrachi
Yahav Mizrachi - avatar
2 Answers
+ 1
The <cstring> is a header for dealing with C-style Strings. A C-style string is an array of characters that uses a null terminator. A null terminator is a special character ('\0', ascii code 0) used to indicate the end of the string. Whereas <string> is a header for standard String operators and functions
11th Mar 2017, 11:19 AM
Hitesh Kaku
Hitesh Kaku - avatar
+ 1
Thanks you
13th Mar 2017, 9:16 AM
Yahav Mizrachi
Yahav Mizrachi - avatar