This is what I am suppose to complete:
For each of the following, write a single statement that performs the specified tasks. Assume the long integer variables value1 to value2 have been declared and that value1 has been initialized to 200000.
a) Declare the variable longPtr to be a pointer to an object of type long.
b) Assign the address of variable value1 to pointer variable longPtr
c) Print the value of object pointed to by longPtr
d) Assing the value of the object pointed to by longPtr to variable value2
e) Print the value of value2
f) Print the address of value1
g) Print the address stored in longPtr.
Below is what I came up with. I would appreciate any help tha you can offer.
a.) int longPtr *value1;
d.) int longPtr *value2;
e.) int printf = value2;
f.) int printf(address of value1);
g. ) int printf; (longPtr = address);