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

单选题:Which is correct according to the following piece of code?

Luz5年前 (2021-05-10)题库664
Which is correct according to the following piece of code?
@[A](2)
```
if(x>y)
x=y; y=x;
else
x++; y++;
printf(“%d,%d”,x,y);
```
A. Syntax error
B. Output 4,5 if x evaluates 3 and y evaluates 4 initially
C. Output 3,4 if x evaluates 4 and y evaluates 3 initially
D. Output 3,3 if x evaluates 4 and y evaluates 3 initially





A.Syntax error
B.Output 4,5 if x evaluates 3 and y evaluates 4 initially
C.Output 3,4 if x evaluates 4 and y evaluates 3 initially
D.Output 3,3 if x evaluates 4 and y evaluates 3 initially


答案:A