1.如何声明及定义指针字符串,及指针数组字符串.
2.并且在函数中如何调用.
谢谢啦.
#include<stdio.h>
void disp(char **p,int n)
{
int i;
printf("\nnow we are in disp()...\n");
for(i=0;i<n;i++)
puts(*p++);
}
main()
{
char *p1="一二三四五";
char *p2="上山打老虎";
char *pp[2];
printf("now we are in main()...\n");
puts(p1);puts(p2);
pp[0]=p1;
pp[1]=p2;
disp(pp,2);
}