diff --git a/指针/指针和数组的地址.cpp b/指针/指针和数组的地址.cpp new file mode 100644 index 0000000..6f22703 --- /dev/null +++ b/指针/指针和数组的地址.cpp @@ -0,0 +1,20 @@ + 1 #include + 2 using namespace std; + 3 + 4 int main(){ + 5 + 6 int a=10; + 7 int b[5]={10,20,30,40,50}; + 8 int * prt_a , * prt_b; + 9 + 10 prt_a=&a; + 11 prt_b=b; + 12 cout << "我是内存地址: "<