#include<iostream>
using namespace std;
void Printf(int(*p)[2], int p1, int p2)
{
for (int i = 0; i < p1; i++)
{
for (int j = 0; j < p2; j++)
{
cout << p[i][j];
}
}
}
void Print(int* p, int p1)
{
}
int main()
{
char a[] = { 'x','y','z' };
for (int i = 0; i < sizeof(a) / sizeof(char); i++)
{
cout << a[i];
}
cout << endl;
int c = 2;
//int* p = NULL;
//p = &c;//p代表的是c的地址
int* p = &c;
int** p1 = &p;//*p1代表的是*p的地址 可以理解为**p1=&&c;
int*** p2 = &p1;//**p2代表的是*p1的地址
cout << *p << endl;
cout << **p1 << endl;//**p1代表的是*p地址里面的值
cout << ***p2 << endl;
int n[2][2] = { {1,1},{2,2} };
int m[2] = { 3,3 };
Print(m, 2);
Printf(n, 2, 2);
return 0;
}