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 / 224.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  631KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: Chapter Arrays and Pointers both of the following statements are legal. int pt &intvar; otr2 In C,it is also possible to make assignments like int pt 1000 to assign the address 1000 to int ptr Note that the value 1000 will be con verted to the type pointer-to- int with the cast( int There are several cautions to be observed when trying direct address assign- ment such as this. In multi- -user multi -tasking environment. take care use addresses within the allotted memory space. If an ordinary user tries to read or write outside of his or her memory space runtime error will occur In some implementations of on microcomputers, these assignments are always legal, but writing into certain memory locations may erase other data needed by the operat- ing system or another program Note that it is pa ...