#include
#include
using namespace std;
int main()
{
int i = 5;
int *p;
int **q;
cout << i<<'\n' << &i << endl;
p = &i;
(*q) = p;
cout << p << endl << *p << endl<<&p<<endl<<&*p<<endl;
cout << q << endl << *q << endl << **q << endl;
cout << &q <<endl << &(*q);
}
代码如上,为什么在编译的时候会说:使用了未初始化的局部变量“q”呢,求大神指点