About this document
Difference Between Strings and Char Arrays by Payal Palvekar is a document available to read on EtoBox.
C strings are null-terminated arrays of characters. They can be declared using character arrays or string literals. Pointers can be used to point to and manipulate strings. Common string functions like strlen(), strcpy(), strcat() allow getting the length of a string, copying strings, and concatenating strings. Traversing a string can be done either using the string length or by checking for the null terminator.
- Author
- Payal Palvekar
- Language
- EN