format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]'

实现 char name[][10];

You can just pass name by itself, which will evaluate to a pointer to the first element of the array( the same as &name[i] )

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2021-05-23
  • 2021-07-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2021-07-04
相关资源
相似解决方案