Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Null-terminated string?

Definition 6.1 University Computer Science — Year 1 · Capítulo 6 — Strings, Structures and Files

In C, a null-terminated string is a sequence of characters stored in consecutive char and followed by a byte of value 0, the null character ’\0’ (code 0, NUL, in ASCII). Its length is the number of characters before that byte. A string literal "rain" is an array of 5 char, the last one zero, that the program must not modify.

Leer en el capítulo →