第31237题 单选题
以下C++代码运行后,控制台的输出结果是?
#include <iostream>
using namespace std;
int main() {
    int a = 10;
    double b = 3.14;
    cout << "a的值为:" << a << ", " << "b的值为:" << b << endl;
    return 0;
}
A

a的值为:10, b的值为:3.14

B

a的值为:10b的值为:3.14

C

程序编译报错,cout无法同时拼接字符串和不同类型的变量

D

a的值为:10, b的值为:3

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