全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Null-terminated string?

Definition 6.1 University Computer Science — Year 1 · 第 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.

在原文中阅读 →