#include void main() {int aa[4][4]={1,2,3,4},{5,6,7,8},{3,9,10,2},#includevoid main(){int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}};int i,s=0;for(i=0;i
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/27 14:08:56
#includevoidmain(){intaa[4][4]={1,2,3,4},{5,6,7,8},{3,9,10,2},#includevoidmain(){intaa[4][4]={{1,2,3
#include void main() {int aa[4][4]={1,2,3,4},{5,6,7,8},{3,9,10,2},#includevoid main(){int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}};int i,s=0;for(i=0;i
#include void main() {int aa[4][4]={1,2,3,4},{5,6,7,8},{3,9,10,2},
#include
void main()
{int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}};
int i,s=0;
for(i=0;i
#include void main() {int aa[4][4]={1,2,3,4},{5,6,7,8},{3,9,10,2},#includevoid main(){int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}};int i,s=0;for(i=0;i
第一次运行i=2,sum[&aa[2]]就把aa[2]当做首地址传给函数sum,然后sum函数中的a[0],a[1]分别代表了aa[2],aa[3],所以第一次完毕以后aa[2]=aa[3]=4;然而aa[0]并没有改变
然后第二次运行i=1;同样将4传给了aa[1]=4;
然后第三次i=0,将aa[0]赋值为4.所以结果应该是4
希望对你能有所帮助.
希望能解决您的问题.
#include void main( ) { int k=-3; if (k
#include void main(void) {int a1=10,a2=3; float a3=8.0; cout
#include reg52.h sbit P1_0 =P1^0; void DELAY(); main() { while(1) { DELAY(); P1_0=~P1_0; } } void
以下程序中,while 循环的次数是#include void main(void){ int i = 0;while (i
#include void main( ) { float x,y; scanf(%f,&x); if(x
#include void main(){int i,j,a=0;for(i=0;i
#include void main( ) { float x,y; scanf(%f,&x); if(x
# include void main() { int y=10; while(y--); printf(y=%d,y); }
九九乘法表程序#include void main(){int i,j,a;for(i=1;i
#include void main() { int i;int sum=0; for(i=1;i
#include void main() { int a[3][3],i,j; for(i=0;i
#include void main() { int y=10; do{ y--; } while(--y); printf(%d
,--y); }
#include void main() { int a,b,c; for(a=1; a
#include void main() { int a,c; a=0; if (a
编程分段函数#include void main(){int x,y;scanf(%d,&x);if(x
# include void main( ) { int x = 4 ; do { printf( %d ,x-- ) ; } while( x ) ; }
#include void main() { char a1='M',a2='m'; printf(%c
,(a1,a2)); }
#include void main(){int a[30];int i;for (i=0,i