Check out example codes for "how long can a c++ string be". It will help you in understanding the concepts better.

Code Example 1

// A C++ string can have up to 4294967295 characters

Learn ReactJs, React Native from akashmittal.com