Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的语句究竟做了什么?
const char *string *string - '0'
谢谢!
'0'它从 指向的字符中减去字符的值string,将其转换为数值。因此,例如字符'9'将变成整数9。
'0'
string
'9'
9