Character array and string

what is the difference between charcter array and string ?
i am getting confuse b\w these two . so can u explain this to me?

hi @Ravi-Kant-1580620005429648

  • C language did not have support for strings, and hence character arrays were used, with ‘\0’ character representing the end of the string.
  • C++ added the support in form of a dedicated “string” data structure.
  • There is slight difference between the two in terms of syntax, functions, etc but the purpose is the same.

Please mark your doubt as resolved in case of no further queries :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.