单项选择题

有下列程序:
main()
int k=5;
while(--k) printf("%d",k=1);
printf("\n");
执行后的输出结果是( )。

A.1
B.2
C.4
D.死循环