1 #include "stdafx.h" 2 #include <iostream> 3 using namespace std; 4 5 int _tmain(int argc, _TCHAR* argv[]) 6 { 7 char **p; 8 char * b[] = {"Fortran","C/C++","Pascal","Basic"}; 9 p = b; 10 cout<< *p<<endl; //将指针p指向p[0] 11 cout<<**p<<endl; //指针指向P[0][0] 12 p = b + 2; 13 cout<<*p<<endl; //输出P指向的第二个单元 14 cout<<*(*p+2)<<endl;//输出b[2]+2指向的数组元素b[2][2] 15 system("pause"); 16 return 0; 17 }