全文预览

二级C语言上机真题题库60道

上传者:相惜 |  格式:pdf  |  页数:164 |  大小:18710KB

文档介绍
r#include <stdio.h>\r#include <stdlib.h>\r#define N 5\rint fun ( int a[][N]).\rint i,j;\rfbr(i = 0 ;i < N ; i++)\rfbr(j = O;j<= i;j++)\ra[i]U] = O;\r)\rmain ()\r{inta[N][N], i,j;\rprintf("***** The array *****\n");\rfor ( i =0; i<N; i++ )\r{fbr(j=0;j<N;j++)\r{ = rand()%10; printfif "%4d", a[i][j]); }\rprintff"\n");\r)\rfun ( a );\rprintf ("THE RESULT\n");\rfor( i =0; i<N; i++ )\r{ fbr (j =0; j<N; j-H-) printf( "%4d", a[i][j]);\rprintf("\n");\r)\rNONO();\rXYZ[?\r†Y‡`ˆ‰Š‹"d 2lmnopjqrs30: ŒŽ:\rint fun (int a[][N])\r(\rint i,j;\rfbr(i = 0 ; i < N ; i++)\rfor(j = 0;j& lt;= i;j++)\ra[i]Lj] = 0;\r`````````````````````````

收藏

分享

举报
下载此文档