若有如下程序段,其中 s、a、b、c 均已定义为整型变量,且 a、c 均已赋值 (c 大于 0)。
s = a;
for (b = 1; b <= c; b++)
s = s + 1;
A. s = a + b; B. s = a + c; C. s = s + c; D. s = b + c;
s = a + b;
s = a + c;
s = s + c;
s = b + c;
发表评论