题目
题目

CEA3201 17984 MAIN - Computer Programming for Engineers Final exam CEA 3201 theory

单项选择题

What is the output of the following code? int it; for(i =0; i<3; i++) printf("%d ", i);    

选项
A.0 1
B.1 2 3
C.0 1 2
D.0 1 2 3
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: What is the output of the following code? int it; for(i =0; i<3; i++) printf("%d ", i);     Options: - 0 1 - 1 2 3 - 0 1 2 - 0 1 2 3 Analysis of each option: Option 1: '0 1' would correspond to a loop that runs only twice (printing 0 and 1) or stops early. In the given code, the loop condition i < 3 and the increment i++ would imply thre......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!