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] )
相關文章
相關標籤/搜索