是的,它是一个指针。
所以它可以心安理得地指向一个字符串,于是在输出时输出这个字符串的内容。
好好学习天天向上
#include#includevoid shiftArray(int a[]){ int temp1 = a[0]; for(int i = 0 ; i < 19; i++) { a[i] = a[i+1]; } a[19] = temp1;}int main(void){ int a[20]={20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1}; shiftArray(a); for(int i = 0 ; i < 20; i++) { printf("%d ",a[i]); } return 0;}
? 重要译本7 后世影响