增加数组处理

This commit is contained in:
LingZhaoHui 2020-09-16 23:59:27 +08:00
parent afa981134a
commit 68630dc53e
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main(){
int a[10];
for (int i = 0;i < 10;i ++){
*(a + i) = i;
}
for (int i = 0; i < 10; i++){
printf("a[%d] = %d\n", i, *(a+i));
}
return 0;
}