home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / c / other / learn / parray1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-07  |  259 b   |  15 lines

  1. /* PARRAY1.C: Compact version of PARRAY.C. */
  2.  
  3. #include <stdio.h>
  4.  
  5. int i_array[] = { 25, 300, 2, 12 };
  6.  
  7.  
  8. main()
  9. {
  10.    int count;
  11.    int *ptr = i_array;
  12.    for( count = 0; count < 4 ; count++ )
  13.       printf( "array[%d] = %d\n", count, *ptr++ );
  14. }
  15.