标签:
示例
1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int a = 35; 6 int *b1 = &a; 7 int **b2 = &b1; 8 cout << a << " "<< *b1 << " "<< **b2 << " "<< endl; 9 return 0; 10 }
结果:35 35 35
示例2
#include <iostream> using namespace std; int main() { int a = 35; int *b1 = &a; int **b2 = &b1; cout << a << " "<< b1 << " "<< *b2 << " "<< endl; return 0; }
结果:35 002FFC84 002FFC84
示例3
#include <iostream> using namespace std; int main() { int a = 35; int *b1 = &a; int **b2 = &b1; cout << a << " "<< b1 << " "<< b2 << " "<< endl; return 0; }
结果:35 0035F7F0 0035F7E4
标签:
原文地址:http://www.cnblogs.com/table/p/4612322.html