For each of the following a single statement that performs


For each of the following, 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) Display the value of object pointed to by longPtr

d) Assing the value of the object pointed to by longPtr to variable value2

e) Display the value of value2

f) Print the address of value1

g) Display the address stored in longPtr.   Is the address displayed the same as value1's?

Solution Preview :

Prepared by a verified Expert
Business Management: For each of the following a single statement that performs
Reference No:- TGS02519000

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)