Strings
| Lesson overview |
Lesson overview
Topics covered: String handling, null terminator, standard library functions.
Strings
In C, strings are arrays of char terminated by \0 (null character).
char str[50] = "Hello";
Use strlen() from for length.
Use strcpy() to copy, strcat() to concatenate.
Always ensure buffer size is sufficient to avoid overflow.
Article author: Arthur Isaev