![]() |
![]() |
![]() |
![]() |
![]() |
|
Now note the following carefully:
Although the value of
nptr is 88, when you evaluate the expression
nptr + 1, the result is 92, rather than 89! Thus,
nptr + 1 is the address of the second element in the
array:
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
| |
| | *----- 4 bytes reserved for
| | | second integer
v v v
--------------- ---------------
--*---*---*---*---*---*---*---*---*-
| | | | | | | | |
-*---*---*---*---*---*---*---*---*--
88 92