Write short answers for each of the following:
(a) Name the operator that is used to declare a pointer variable.
(b) If pt is an integer pointer variable, what is the value that this pointer variable can have? (c) List the three values that can be used to initialize a pointer variable.
(d) Name and give the symbol of the operator that returns the location in memory where its operand is stored.
Answer:
(a) indirection operator (*);
(b) memory address;
(c) 0, NULL, or an address;
(d) address of operator (&);
Comments
Leave a comment