The uses of pointers:
(InputChar )
|
'A' | |||
(ptrchar )
|
address of InputChar |
Design Issues: (Page 272)char InputChar = 'A';
char *ptrchar;
ptrchar = &InputChar;In the above statements:
1) InputChar is bound to a memory block with 'A' in it.
2) ptrchar is declared as a pointer and bound to a random block.
3) The address of InputChar is put into the block that ptrchar is bound to.
j = *ptr