c++ string
C++ string In this post, you will learn about the declaration, syntax, and how to use the string in the C++ language. The collection of the characters is called the string In the CPP, two types of string mostly used. The C-style character string. The string object in the standard library of the CPP. What is c-style string? C-style string The c-style string is the drive from the C language. Actually,CPP created after the C language is the mother language of the CPP, and a lot of the properties of the C language are found in the C++ language. The C-style string based upon the array of the characters with NULL character as a terminated character at the end of the array. The array is a one-dimensional array. How to declare C-style string? Char str[7]={'s', 't', 'r', 'i', 'n', 'g', '\0'}; In the above declaration, NULL character is in the end of the string which tells the compiler this end of the string. Other way of the declaring the