数组函数练习(Array function exercise).docVIP

  • 3
  • 0
  • 约8.07千字
  • 约 20页
  • 2017-10-06 发布于河南
  • 举报
数组函数练习(Array function exercise)

数组函数练习(Array function exercise) Definition and reference of an array 1. the definition, initialization, and reference of one-dimensional arrays and multidimensional arrays (1) the following option to correctly define a one-dimensional array is B A) int, a[5]={0, 1, 2, 3, 4, 5}; B) char, a[]={0, 1, 2, 3, 4, 5}; C) char, a={A,B,C}; D) int a[5]= 0123; (2) the following procedures Voidf (int*x, int*y) {int t; T=*x; *x=*y; *y=t; } (main) {int, a[8]={1, 2, 3, 4, 5, 6, 7, 8}, I, *p, *q; P=a; q=a[7]; While (pq) { F (P, Q); P++; Q--; } For (i=0; i8; i++) Printf (%d, a[i]); } The output after the progra

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档