fun(int **p)的使用
#include <iostream>
using namespace std;
void fun(int **p)
{
cout << p[0][0] << endl;
}
void main()
{
int a[] = {1,2,3,4,5};
int *p = a;
int **q = &p;
fun(q);
system("pause");
}
step by step.
众生皆苦,唯有自渡。
#include <iostream>
using namespace std;
void fun(int **p)
{
cout << p[0][0] << endl;
}
void main()
{
int a[] = {1,2,3,4,5};
int *p = a;
int **q = &p;
fun(q);
system("pause");
}