qfedu-c-level/day9/d6.c

13 lines
187 B
C
Raw Normal View History

2023-07-13 19:18:49 +08:00
#include <stdio.h>
int main()
{
int arr[] = {1, 2, 3, 4, 6};
int *p = arr;
for (int i = 0; i < 5; i++)
{
printf("arr[%d] = %d\n", i, *p++);
}
return 0;
}