-->
当前位置:首页 > 题库

单选题:Which option is **correct** according to the following fragment

Luz5年前 (2021-05-10)题库753
Which option is **correct** according to the following fragment of code?
```
if(x>y)
x=y; y=x;
else
x++; y++;
printf(“%d,%d”,x,y);
```
@[A](1)

A. Syntax error
B. Print 4,5 on the screen (if x evaluates 3 and y evaluates 4 initially)
C. Print 3,4 on the screen (if x evaluates 4 and y evaluates 3 initially)
D. Print 3,3 on the screen (if x evaluates 4 and y evaluates 3 initially)




A.Syntax error
B.Print 4,5 on the screen (if x evaluates 3 and y evaluates 4 initially)
C.Print 3,4 on the screen (if x evaluates 4 and y evaluates 3 initially)
D.Print 3,3 on the screen (if x evaluates 4 and y evaluates 3 initially)


答案:A