单项选择题

判断按键是否按下的编程程序正确的是()

A.if(key==0){…..}else {……}
B.if(key=0){…..}else {……}
C.while(key==0){……}
D.while(key=0){……}