C语言程序设计 教学课件 作者 罗朝盛 第5章 习题参考答案.docVIP

  • 5
  • 0
  • 约7.62千字
  • 约 12页
  • 2017-08-20 发布于广东
  • 举报

C语言程序设计 教学课件 作者 罗朝盛 第5章 习题参考答案.doc

第5章 习题参考答案 判断题 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 √ × √ × × √ × × × × × × × × × 填空题 32 4 str1[7]= \0; for(i=1;i=6;i++) gets(a[i]); strcpy(web, ); int *p=a; 5 1 *(p+6)或 *(s+6) 选择题 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 B C B A B C B A C D B D B A D 程序阅读题 6 str 60 bcdefga cdefgab defgabc a1e2 程序填空题 # include math.h scanf(%f, a[i]) s=0; x=a[0] fabs(a[i]-s) scanf(%d,n) a[i][i]=1 a[i-1][j-1] printf(\n) b[i]!=\0 strcpy puts(b) (4)p=a[0]; 或p=a[0][0]; *p 六、编程题 1、使用数组和指针2种方法来处理。 方法一(使用数组) #include stdio.h void main() { int i=0,a[10],t; printf(Enter the 10 number=\n); for(i=0; i10;

文档评论(0)

1亿VIP精品文档

相关文档