为啥引用不行
#include<stdio.h>#include<stdlib.h>
int main()
{
void invert(char str[] );
int n,i;
char *p;
printf("请输入数组长度:");
scanf("%d",&n);
p=(char*)calloc(n,sizeof(char));
printf("\n");
scanf("%s",p);
invert(p);
for(i=0;i<n;i++)
printf("%s",p[i]);
}
void invert (char str [])
{ int i,j,k;
for(i=0,j=k-1;i<=j;i++,j--){
k=str[i];
str[i]=str[j];
str[j]=k; }
}