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] )
相关文章
相关标签/搜索