第28160题 单选题
执行以下C++代码片段后,变量res的最终值是?
#include <iostream>
using namespace std;
int main() {
    int num = 3;
    int res = num += num *= 2;
    cout << res << endl;
    return 0;
}
A

6

B

12

C

9

D

18

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