<cstring> or<string>, C++? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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