Re: [algogeeks] String vs char array

2011-07-29 Thread sanjay ahuja
string class also stores the length of the string associated with it. When the string is printed, it prints it till the length but char array does not store any length variable. On Sat, Jul 30, 2011 at 10:36 AM, Grapher wrote: > string str("Hello"); > int main() > { >    str[3]=0; >    cout< } >

[algogeeks] String vs char array

2011-07-29 Thread Grapher
string str("Hello"); int main() { str[3]=0; cout