Strings
Text = char array; working with strlen, strcat, and strcmp (string.h).
Simple enough for a 5-year-old to understand
Char array and length
In C, text is a char array. strlen from string.h is used for its length.
#include <stdio.h>#include <string.h>int main() { char name[] = "hello"; printf("%d\n", (int)strlen(name)); return 0;}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 10