Question: write a single statement that performs the specified task. Assume that long variables valuel and value2 have been declared and valuel has been initialized
write a single statement that performs the specified task. Assume that long variables valuel and value2 have been declared and valuel 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 valuel to pointer variable longPtr. C. Display the value of the object pointed to by longPtr. D. Assign the value of the object pointed to by longPtr to variable value2. E. Display the value of value2. F. Display the address of valuel. G. Display the address stored in longptr. Is the address displayed the same as valuel's?
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
Task A Declare the variable longer to be a pointer to an object ... View full answer
Get step-by-step solutions from verified subject matter experts
