![]() |
![]() |
![]() |
![]() |
![]() |
|
Whenever a string appears in an expression, the value of that string is a pointer to the first element in the corresponding character array:
Value of the "box" expression is
a pointer to the first element
of the characters array
|
|
| 0 1 2 3 <----- Array index
| | | | |
v v v v v
-------- -------- -------- -------- Memory addresses --*
----*--------*--------*--------*--------*--------*--------*--- |
|01100010|01101111|01111000|00000000| | | |
---*--------*--------*--------*--------*--------*--------*---- |
920 921 922 923 924 925 926 <-*
-------- -------- -------- --------
^ ^ ^ ^
| | | *----- End-of-string code
b o x <----- Encoded character