#CH019. 混合运算中数据类型的自动转换

    ID: 245 Type: Objective Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>信息学奥赛导学(C++语言基础入门)

混合运算中数据类型的自动转换

阅读程序,填写对应的输出结果

char c = 'A';
int a = 10;
long long x = 12345678900; 
double y = 1.0;
cout << c - a << endl;
cout << x + c << endl;
cout << c - y << endl;
cout << a * x << endl;
cout << a * y + x << endl;

第一次输出:{{ input(1) }}

第二次输出:{{ input(2) }}

第三次输出:{{ input(3) }}

第四次输出:{{ input(4) }}

第五次输出: {{ multiselect(2) }}

  • 12345678910
  • 1.23457e+10
  • 12345678900