0004 0008 000c 0010 0014 0018 00 00 00 04 001c 0020

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: using C Boolean algebra and bit ­level manipulaJons Memory 17 University of Washington Addresses and Pointers       Address is a loca1on in memory Pointer is a data object that contains an address Address 0004 stores the value 351 (or 15F16) Memory 0000 00 00 01 5F 0004 0008 000C 0010 0014 0018 001C 0020 0024 18 University of Washington Addresses and Pointers         Address is a loca1on in memory Pointer is a data object that contains an address Address 0004 stores the value 351 (or 15F16) Pointer to address 0004 stored at address 001C Memory 0000 00 00 01 5F 0004 0008 000C 0010 0014 0018 00 00 00 04 001C 0020 0024 19 University of Washington Addresses and Pointers           Address is a loca1on in memory Pointer is a data object that contains an address Address 0004 stores the value 351 (or 15F16) Pointer to address 0004 stored at address 001C Pointer to a pointer in 0024 Memory 0000 00 00 01 5F 0004 0008 000C 0010 0014 0018 00 00 00 04 001C 0020 00 00 00 1C 0024 20 University of Washington Addresses and Pointers             Address is a loca1on in memory Pointer is a data object that contains an address Address 0004 stores the value 351 (or 15F16) Pointer to address 0004 stored at address 001C Pointer to a pointer in 0024 Address 0014 stores the value 12   Is it a pointer? Memory 00 00 01 5F 00 00 00 0C 00 00 00 04 00 00 00 1C 0000 0004 0008 000C 0010 0014 0018 001C 0020 0024 21 University of Washington Data RepresentaJons   Sizes of objects (in bytes)   Java data type             boolean byte char short int float           double long (reference) C data type bool char short int int float long int double long long long double pointer * Memory Typical 32 ­bit 1 1 2 2 4 4 4 8 8 8 4 x86 ­64 1 1 2 2 4 4 8 8 8 16 8 22 University of...
View Full Document

Ask a homework question - tutors are online