#CH017. 自增与自减

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

自增与自减

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

int i = 0, j = 0;
i++;
++j;
cout << i << ' ' << j << endl;
cout << ++i << ' ' << j++ << endl;
cout << i << ' ' << j << endl;
cout << i-- << ' ' << --j << endl;
cout << i << ' ' << j << endl; 

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

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

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

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

第五次输出: {{ input(5) }}