There is no limit* to the length of a string a string object can store. The string object will re-allocate the memory it stores internally if it needs to, to accomodate the longer string you assign to it.
*OK, there is a limit, but it's on the order of 2 billion, so for all practical purposes, there is no limit




Reply With Quote