qfedu-c-level/day9/d6.c

13 lines
187 B
C

#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;
}