Home Segments Index Top Previous Next

339: Mainline

Viewed from the memory perspective, the result of the statement, nptr = &number[0];, is that 88, which is the address of number[0], is deposited in the chunk of memory reserved for the pointer, nptr:

     nptr 
----*--------*--------*-- 
    |00000000|01011000| 
 ---*--------*--------*----- 
     24       25       26 
     ----------------- 
             | Number refers to address of the byte where memory 
             | is allocated for first integer in the number array 
             | 
             |      *-- 4 bytes of storage reserved for first integer   
             |      | 
             v      v 
             --------------- 
          --*---*---*---*---*---*---*- 
            |   |   |   |   |   |   |   
           -*---*---*---*---*---*---*-- 
             88              92