C语言程序设计读程序写结果
1、main(){inta[3][3]={{1,0,2},{2,2},{0,2}},c[3][3],i,j;for(i=0;i<3;i++){for(j=0;j<3;j+...
1、main()
{inta[3][3] = {{1,0,2}, {2,2},{0,2}}, c[3][3],i,j;
for(i=0; i<3; i++)
{
for(j=0;j<3; j++)
{
c[i][j] = a[a[i][j]][a[j][i]];
printf("%5d",c[i][j]);
}
}
printf("\n");
}
输出结果为____ _____
3、main()
{ int a[5]={1,2,3,4,5};
int *p=&a[1];
printf("%d",p[2]);
}
输出结果为____ _____
4、main()
{ inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
int (*pa)[4]=a;
pa++;
printf("%d",*(*(pa+1)+2));
}
输出结果为____ _____
5、void fun( )
{int a=3; }
main()
{inta=1;
fun();
printf("a=%d",a);}
输出结果为____ _____
6、#define add(x , y) x+y
main()
{inta , b , s;
a=5,b=6;
s=add(a,b);
printf("s=%d\n", s);}
输出结果为____ _____ 展开
{inta[3][3] = {{1,0,2}, {2,2},{0,2}}, c[3][3],i,j;
for(i=0; i<3; i++)
{
for(j=0;j<3; j++)
{
c[i][j] = a[a[i][j]][a[j][i]];
printf("%5d",c[i][j]);
}
}
printf("\n");
}
输出结果为____ _____
3、main()
{ int a[5]={1,2,3,4,5};
int *p=&a[1];
printf("%d",p[2]);
}
输出结果为____ _____
4、main()
{ inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
int (*pa)[4]=a;
pa++;
printf("%d",*(*(pa+1)+2));
}
输出结果为____ _____
5、void fun( )
{int a=3; }
main()
{inta=1;
fun();
printf("a=%d",a);}
输出结果为____ _____
6、#define add(x , y) x+y
main()
{inta , b , s;
a=5,b=6;
s=add(a,b);
printf("s=%d\n", s);}
输出结果为____ _____ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询