[圖解C] exercise 702: using pointer variable and following materials to printf

// exercise 702: using pointer variable and following materials to printf

/*
  int i, array[5]={100, 200, 300, 400, 500};
  int *pl;
  pl = &array[4];
*/

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i, array[5]={100, 200, 300, 400, 500};
    int *pl;
    pl = &array[4];
   
    for (i=0 ; i>-5 ; i--){
        printf("array[%d] = %d\n", i+4, *(pl+i));
    }
   
    system("pause");
    return 0;
}