home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc / qc25 / parray1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-15  |  257 b   |  13 lines

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