Skip to main content
All lessons

Working with Text

7 min · C

Work with C strings — arrays of characters terminated by \0.

C · Working with Text0/5 cleared

Enemy 1 of 5

In C, text is a char array ending with \0. Include <string.h> for strlen and strcat.

String literals like "Hello" are read-only; use a char buffer to build longer text.

You
Packet Wolf

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Hello, Ada