String Constant 和 String Literal 在普通 C 中有什么区别?
这个问题与另一个问题类似:What's the difference between a string constant and a string literal? ...除了一个是关于 Objective-C(使用 NSString)而不是 C。
最佳答案
在C99 Draft from 2007使用术语sting literal。 字符串常量 一词根本没有出现在草案中。
在谈论“foo”时,我发现字符串文字是一个很好的术语选择(就像 42 是一个文字数字,“foo”是一个文字字符串)。
关于c - C中的字符串常量和字符串文字有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3911452/