单项选择题

对下列程序描述正确的是()。 #include <stdio.h> int main() { int x=0,s=0; while(!x!=0) s+=++x; printf("%d\n",s); return 0; }

A、程序中的循环条件表达式是非法的
B、程序中循环无数次
C、运行程序后输出0
D、运行程序后输出1
题目列表

你可能感兴趣的试题

问答题

We apply the method of analytical algorism to solve mathematical model in computer simulation.

答案: 在计算机模拟中,我们应用解析算法(analytical algorism)来解决数学模型。解析算法通常指的是使用数学分析...
微信扫码免费搜题