Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields 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?