不多说,直接上测试代码
#include<iostream>
void GetMemory(char * memorystr,int num)
{
}
int main()
{
using namespace std;
int b = 0;
int *a;
a = &b;
int **c = &a; //a的引用赋给c
cout << "****{a}****" << endl;
cout <<"a:"<< a << endl;
cout <<"*a:" <<*a << endl;
cout << "&a:"<<&a << endl;
cout << endl;
cout << "****{b}****" << endl;
cout <<"b:"<< b << endl;
cout << "&b"<<&b << endl;
cout << endl;
cout << "****{int **c = &a;}****" << endl;
cout << "c:" << c<<endl;
cout << "*c:" << *c << endl;
cout << "**c:" << **c << endl;
cout <<"&c:"<< &c << endl;
cout << endl;
cout << "****{int