Welcome to Westonci.ca, the ultimate question and answer platform. Get expert answers to your questions quickly and accurately. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

For each of the following, write a single statement that performs the specified task. Assume that long variables value1 and value2 have been declared, and 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 valuel1 to pointer variable longPtr.
c) Print the value of the object pointed to by longPtr.
d ) Assign 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. Is the value printed the same as value1's address?