c语言如何打印的数组中的一个单独的元素?答:int main(void){ int Arr[10]={1,2,3,4,5,6,7,8,9,0};// 通过下标 printf("%d\n",Arr[5]);// 指针偏移法 printf("%d\n",*Arr+4);int* PArr=Arr;// 指针偏移法 printf("%d\n",*PArr+3);return 0;}
建立一个对象数组,内放5个学生的数据,用指针指向数组首元素,输出第1,3...答:i=0,p指向stud[0],i=1,p指向stud[2],i=2,p指向stud[4],因此打印第1、3、5学生的信息 追问 i=0,p指向stud[0],i=1,p指向stud[2],i=2,p指向stud[4],但是你都需要一个条件吧,如果按你这样说,p=p+2这个条件都不需要用到了,直接删掉。 本回答被网友采纳 terranlong | 推荐于2017-12-16 ...