单选题

有以下程序执行后的输出结果是

void main()

  int  y=10;

  while(y=y-1) ; 

  cout<<y<<endl;


A.

0

B.

-1

C.

1

D.

while构成无限循环

发表评论

登录 后再回复