小编del*_*242的帖子

printf():%n写什么时候?

请考虑以下代码:

#include <stdio.h>

int main() {
  int i = 0;
  printf("hello%n%d\n", &i, i);
}
Run Code Online (Sandbox Code Playgroud)

为什么打印hello0而不打印hello5

c printf string-formatting

3
推荐指数
1
解决办法
244
查看次数

标签 统计

c ×1

printf ×1

string-formatting ×1