//指向字符型数据的指针变量
测试代码:
#include <iostream>
using namespace std;
int main()
{
char **p;
char *name[ ]={"basic","fortran","c++","pascal","cobol"};
p=name+2;
cout<<*p<<endl;
cout<<**p<<endl;
return 0;
}
运行结果:
//指向字符型数据的指针变量
测试代码:
#include <iostream>
using namespace std;
int main()
{
char **p;
char *name[ ]={"basic","fortran","c++","pascal","cobol"};
p=name+2;
cout<<*p<<endl;
cout<<**p<<endl;
return 0;
}