
198 Data Structures Using C
x = 15;
printf (“\n Value of x = %d”, x);
printf (“\n Address of x = %d”, &x);
The output of the above program segment would
be as shown below:
Value of x = 15
Address of x = 2712 (assumed value)
The contents of variable x (memory location 2712) are
shown in Figure 5.2.
It may be noted here that the value of address of x
(i.e., 2712) is assumed and the actual value is dependent on
‘machine and execution’ time.
5.1.2 The ’*’ Operator
The `*´ is an indirection operator or `value at address operator´. In simple words, we can
say that if address of a variable is known, then the `*´ operator provides the ...