标签:mes 需要 pac 为什么 类型转换 name asi 个数 stream
#include<iostream>
using namespace std;
int main()
{
int a[2][5]={{1,2,3,4,5},{6,7,8,9,10}};
int *ptr=(int*)(&a+1);
cout<<*(ptr-2)<<endl;
cout<<a<<endl;//数组头指针 第0行
cout<<a+1<<endl; // 第1行 20
cout<<(&a+1)<<endl;// 第2行 40
cout<<ptr<<endl;
cout<<ptr-1<<endl;
cout<<ptr-2<<endl;
cout<<*(ptr-1)<<endl;
return 0;
}
结果
9
0x70fdf0
0x70fe04
0x70fe18
0x70fe18
0x70fe14
0x70fe10
10
标签:mes 需要 pac 为什么 类型转换 name asi 个数 stream
原文地址:https://www.cnblogs.com/alwayszzj/p/12483869.html