11-09-2006
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
Yes, there is a difference between C and C++ strings. C strings are, well, strings -- purely null-terminated character arrays, only null terminated character arrays, and nothing but null-terminated character arrays. If it's not a null-terminated character array, it's not a C string.
C++ strings aren't null-terminated character arrays -- they're classes. This lets them do things like copy, reallocate, and enlarge themselves automatically, something null-terimated character arrays obviously can't. They probably contain null-terminated character arrays, but they're protected, you can't do direct operations on them the way C expects.