Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到错误:警告:格式参数不是指针(参数 2)
用这条线:printf("%s \n", *(group_list->name));
printf("%s \n", *(group_list->name));
考虑到名称是指向字符的指针,我不明白为什么这是一个问题。使用s有问题吗?我必须使用不同的说明符吗?
改用这个:
printf("%s \n", group_list->name);
s转换说明符期望 achar *不是char.
s
char *
char