测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A67858. 在64位操作系统下(LP64 / LLP64 模型),下面代码的输出结果是()。1 #include <iostream>

单选题

题目描述

64位操作系统下(LP64 / LLP64 模型),下面代码的输出结果是()。

1 #include <iostream>
2 using namespace std;
3
4 int main() {
5  int a[4] = {1, 2, 3, 4};
6  int (*p)[4] = &a;
7  int *q = a;
8
9  cout << sizeof(a) << " ";
10  cout << sizeof(p) << " ";
11  cout << sizeof(p + 1) << " ";
12  cout << sizeof(q + 1) << " ";
13  cout << (p + 1) - p << " ";
14  cout << (q + 1) - q << endl;
15 }

选项(单选)