回复 10楼 linlulu001
如您所说,#include <stdio.h>
main()
{
char b[30]="today is holiday.";
char a[30];
scanf("%s",&a); //这里a和&a似乎等效
printf("%s",&a+1);
}
这个程序,输入iloveyou,输出了b字符串的值。想必b正好在a后30个字节。谢了!
2016-09-03 19:00
2016-09-03 20:53
2016-09-04 16:06