home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _DISK_ / ch4 / address1.c next >
C/C++ Source or Header  |  2005-06-16  |  442b  |  19 lines

  1. /*                        address1.c
  2.  *
  3.  *   Synopsis  - Prints the address of a variable.
  4.  *
  5.  *   Objective - Illustrates addresses in memory and C's ability
  6.  *               to display them.
  7.  */
  8.  
  9. /* Include Files */
  10. #include <stdio.h>
  11.  
  12. int main( void )
  13. {
  14.      int intvar;    
  15.  
  16.      printf( "The values of intvar are stored in the memory" );    
  17.      printf( " location %p.\n", &intvar );            /* Note 1 */
  18.      return 0;
  19. }