什么\\ 0立场? [英] What does \0 stand for?
本文介绍了什么\\ 0立场?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
什么是\\ 0符号在C字符串是什么意思?一>
这是什么'\\ 0'
意味着C,什么是等效为在Objective-C?
What does '\0'
mean in C, and what is the equivalent for that in Objective-C?
推荐答案
的'\\ 0'
字符文字和字符串内表示与$ C $字符c为。用C和Objective C的意思是一样的。
The '\0'
inside character literals and string literals stands for the character with the code zero. The meaning in C and in Objective C is identical.
要说明这一点,你可以使用 \\ 0
在数组初始化构建一个阵列相当于一个null结尾的字符串:
To illustrate, you can use \0
in an array initializer to construct an array equivalent to a null-terminated string:
char str1[] = "Hello";
char str2[] = {'H', 'e', 'l', 'l', 'o', '\0'};
在一般情况下,你可以使用 \\ OOO
重新present一个ASCII字符的八的符号,其中 0
的立场最多三个八进制数字。
In general, you can use \ooo
to represent an ASCII character in octal notation, where o
s stand for up to three octal digits.
这篇关于什么\\ 0立场?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文