第30592题 单选题
下列C++代码运行后的输出结果是?
#include <iostream>
using namespace std;
int main() {
    int arr[] = {1, 3, 5, 7, 9};
    int *p = arr;
    cout << *p << ",";
    cout << *(++p) << ",";
    cout << *p + 1 << ",";
    cout << *p++ << ",";
    cout << *p << endl;
    return 0;
}
A

1,3,4,3,5

B

1,3,4,5,7

C

1,3,5,3,5

D

2,3,4,3,5

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析