考虑 c 代码片段:
#include<stdlib.h>
int main()
{
printf(2+"Roomy");
return 0;
}
给出的输出跳过字符串的前 2 个字符,即 omy
那么谁能解释一下添加是怎么回事?
最佳答案
printf 需要一个指向 char 的指针。 “+2”表示指针移动超过2个位置。
关于c - 打印整数和字符的总和*,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59163722/