I\'m a C programmer trying to write c++ code. I heard string in C++ was better than char* in terms of security, performance, etc, however sometimes it
string
char*
Compare and contrast the following C and C++ examples:
strlen(infinitelengthstring)
versus
string.length()