C语言编程:用指针表示法给一维数组元素输入值,输出各元素的值及元素之...答:include <stdio.h> int main(){ int a[6],i,sum,*p;printf("Please input data of a[6]:\n");for(i=0,p=a;i<6;++i)scanf("%d",p++);printf("Output arry:\n");for(i=0,sum=0,p=a;i<6;++i){ printf("%d ",*p);sum+=*p++;} printf("\ns=%d\n",sum);return ...
C语言编程,题目1:定义一个一维数组,用指针引用的方法对该数组各元素赋值...答:题目1 void main(){ int i;char a[3];a=1;(a+1)=2;(a+2)=3;for(i=0;i<3;i++){ printf("%d.\n",a[i]);} return;} 题目二 include<stdio.h> void main(){ int i,j;int A[3][4]= { {1,2,3,4},{5,6,7,8},{9,10,11,12} };int (*p)[4]=A;for(i...