home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 214.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  514KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 214 Chapter Arrays and Pointers Example 4-6: address2.c address2.c Synopsis Prints the address of vari Lable qo ect ive Demons trates poi inters addresses in memory. Gives the syntax of decl aring pointer to an intege and one technique for ini pointer Inc lude Files #incl Lude <stdio h> int main( void int intvar; int *ptr to intvar Note 1 printf "The vaiue of ptr_ to intvar is &p. \n" ptr to intvar Note 2 ptr to intvar &intvar; Note 3 pri intf( "The address of intvar is p.\n &intvar printf "The value of ptr to intvar n ptr tc intva Note 4 return Running the Program The value of ptr to intvar is CCCCCCCC The address of intvar is 0065FDF4 The value of ptr to intvar 0065 FDF4 Variables of type int and int are declared The value of "the pointer variable 18 displayed before and after initializa ...