1.以下程序的输出结果是_____。#includeintfun(intx){static intt=0;return(t+=x);}main(){ints,i;for(i=1;i<=5;i++)s=fun(i);printf("%d\n",s);}
2.以下程序运行后的输出结果是 ____ 。#include#include #includemain(){ char *p; int i;p=(char*)malloc(sizeof(char)*20);strcpy(p,"welcome");for(i=6;i>=0;i--)putchar(*(p+i));printf("\n"); free(p);}
1.齐桓公重用他的政治仇敌而又富有治国之才的()为相,终于称霸一时。
A. 子贡
B. 晏子
C. 管仲
D. 百里奚
2.汉文帝刘恒开始采用策问的办法考察被荐举的官吏。汉武帝()时,这种策问考试普遍实行。
A. 刘安
B. 刘彻
C. 刘秀
D. 刘协