-
null-terminated
鎖定
null-terminated是一種編程語言中的字符串,null是adj 等於零的、沒有的,terminated是adj 結束的。
- 中文名
- 空終止字符串
- 外文名
- null-terminated
- 字符串
- null-terminated string
- null
- adj 等於零的,沒有的
- terminated
- adj 結束的
null-terminated含義
null-terminated string 字符串;
空終止字符串; 字符串標準庫提供的頭文件中包含操作以空字符結尾的字符串(null-terminated string)的函數。它們是C++標準特有的一組函數。
即為在字符串結尾加上'\0'的字符串。
當然我們還可以看看以下的含義,這樣有助於理解。
null-terminated character string Null 終端字符字符串
null-terminated解釋
null-terminated string 就是以指以'\0'結尾的字符串,相對於Char類型來説的。
例如 string a="test" 其實a在內存中是以't','e','s','t','\0'形式存儲的,當遇到'\0'就認為字符串a結束了。從null-terminated string字面中我們也可以看出來它的意思。
null : adj 等於零的,沒有的;
terminated: adj 結束的
string: n 字符串 null-terminated string 翻譯出來就是以\0結尾的字符串。
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:13次歷史版本
- 最近更新: 哪有什么错与对