一个关于指针与双重指针区别的小实验
摘要:
1 #include<iostream> 2 using namespace std; 3 void test1(int n,char* ptr) 4 { 5 cout<<"the address of ptr:"<<&ptr<<endl; 6 cout<<"this is the test in test1:"<<ptr<<endl; 7 ptr="mk"; 8 } 9 void test2(int n,char** ptr)10 {11 c 阅读全文