2015年韩山师范学院本科插班生考试《c语言程序设计》课程试卷概要.docVIP

  • 45
  • 0
  • 约2.22千字
  • 约 8页
  • 2017-02-05 发布于湖北
  • 举报

2015年韩山师范学院本科插班生考试《c语言程序设计》课程试卷概要.doc

2015年韩山师范学院本科插班生考试《c语言程序设计》课程试卷概要

韩山师范学院2015年本科插班生考试试卷 教育技术学 专业 C语言程序设计 试卷(A卷) 题号 一 二 三 四 五 六 总分 评卷人 得分 #include stdio.h int main( ) { int i,n=0; for(i=2;i5;i++) { do { if(i%3) continue; n++; }while(! i); n++; } printf(n=%d\n,n); return 0; } 2. #include stdio.h int fun(int x) { if(x/21) fun(x/2); return(printf (%d\n,x) ); } int main() { int fun(int x) ; fun(7); return 0; } 3. #include stdio.h void fun(int *s, int n1, int n2) { int i,j,t; i=n1;j=n2; while(ij){t=s[i]; s[i]=s[j]; s[j]=t; i++, j--;} } int main(

文档评论(0)

1亿VIP精品文档

相关文档