单项选择题

有以下程序
#include <stdio.h>
main()
int n=2,k=0;
while(k++&&n++>2);
printf("%d %d\n",k,n);

程序运行后的输出结果是()

A. 0 2
B. 1 3
C. 5 7
D. 1 2