填空题
以下程序的功能是计算:s=1+12+123+1234+12345。请填空。
#include <stdio.h>
main( )
int t=0.s =0,i:
for(i=1;i<=5;i++) t=i+
【16】
;s=s+t;
prinff("s = % d\n". s );
【参考答案】
t*10
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是 【20】 。 #include <stdio.h> main ( ) iht x=0210; printf( %x n ,x);
点击查看答案&解析
填空题
以下程序运行后的输出结果是 【15】 。#include <stdio.h>#include <string.h>char * ss(char * s) char * p,t; p=s+1:t= *s: whilet * p) *(,p-1) = *p; p++; * (p-1) =t; return s : main ( ) char * p,str[10] = abedefgh ; p = ss(str); printf( % s n . p):
点击查看答案&解析
相关试题
以下函数rotate的功能是:将a所指N行N列的...
以下程序运行后的输出结果是 【17】 。...
以下函数sstrcat的功能是实现字符串的连接...