有人可以在下面解释程序的输出吗?它给出的输出为“ jack jill”。为什么通过引用传递不起作用?
#include <stdio.h>
void func(char *s1, char *s2)
{
char *t;
t = s1;
s1 = s2;
s2 = t;
}
int main(void)
{
char *s1 = "jack", *s2 = "jill";
func(s1, s2);
printf("%s %s", s1, s2);
}