home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_07 / 401.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  667KB  |  2550x3300
Labels: book | poster | reckoner
OCR: Using Structures with Arrays and Pointers 401 cell of the array Then the pointer variable should be incremented to traverse the array. Compile and execute the following program to verify that pointer arithmetic with structures works as you think it should Synopsis Displays the sizeof structure and the values of two po nter ari thmetic express ions and Objecti To provi ide practi ice with pos inter do The ari ithmet ic with pai inters to mation out the Inc ude Fi les tincl Lude <stdio h Constant Defini tions #define ID SIZE Type De: script ions struct auto part char idlID SIZEJ; doubl pri ice, int cur inv; part, int main void struct auto part partptr &part, printf "sizeof part sd\n" sizeof( part ) printf "partptr sd, partptr+l sd\n" partptr partptr+1; return Predict the output of the follow ...