qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ARRAY.C
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
/* ARRAY.C: Demonstrate one-dimensional array. */
#include <stdio.h>
 
main()
{
   int j;
   int i_array[3];
 
   i_array[0] = 176;
   i_array[1] = 4069;
   i_array[2] = 303;
 
   printf( "--- Values --------     --- Addresses -------\n\n" );
 
   for( j = 0; j < 3; j = j + 1 )
   {
      printf( "i_array[%d] = %d", j, i_array[j] );
      printf( "\t&i_array[%d] = %u\n", j, &i_array[j] );
   }
 
}