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 / 220.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  655KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 220 Chapter 4 Arrays and Pointers Dereferencing Pointer Variable We have used pointers to print the addresses of variables in an executing program with the main objective of illustra ating the basic concepts of pointers In practice. this technique be useful for debugging programs, but is not often perma- nent part of a program. In this section we learn how to determine the value pointed to by pointer This value can be either accessed or changed through pointer operations int pt decl lared as pointer- -to- int we know that legal values for int ptr are addresses of integers To get to the contents of an address stored in a pointer variable we use the dereference operator If the syntax int 4a is used in any expression other than declaration. it refers to the contents of the current address in ...