πŸ’©

programierds

string / step by step

Strings in C, line by line

This example shows strlen(), an uppercase copy, and a manual string slice with the value of each variable on every line.

1) CodeActive line: 1
1char texto[] = "Programierds";
2int largo = strlen(texto);
3char mayus[] = "PROGRAMIERDS";
4char parte[5] = "Prog";
5printf("%d\n", largo);
6printf("%s\n", mayus);
7printf("%s\n", parte);
Step 1: texto is created with texto with 'Programierds'.
Step 1 / 7
2) Variables
textoProgramierds
largo-
mayus-
parte-
3) Simulated Console
./string-demostdout