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...
用c语言编写程序,用一个字符指针数组存放宿舍所有同学的名字,并把他...答:include <stdio.h> define ARR_SIZE 10 int main(){ char *names[ARR_SIZE]={"zhao1","qian2","sun3","li4","zhou5","wu6","zhen7","wang8","feng9","chen10"}; //假定存放了这些姓名 int i,n;n = 10;for (i=0;i<n;i++) printf("%s\n",names[i]); //打...