设有以下程序段 int X=0,s=0; while(!X!=0)S+=++X;
题型:单项选择题
问题:
设有以下程序段 int X=0,s=0; while(!X!=0)S+=++X; printf("%d",s); 则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
设有以下程序段 int X=0,s=0; while(!X!=0)S+=++X; printf("%d",s); 则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次