函数名是一个地址,等于数组第一个数组元素的地址
char str[128];
printf("地址是");
scanf("%s",str);
printf("%sn",str);//str(函数名)是地址
printf("%pn",&str[0]);//str【0】是字符,所以要加&
//输出地址时,str=&str[0】
输出字符串时,str=所读入的字符串
可以定义一个字符串数组 char str【】=“app.com”
printf(“&sn”,str)输出的时app.com
指向数组的指针
用一个指针指向数组:
char *p;
p=a或p=&a[0];



