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 value1 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 value1.
g) Display the address stored in longPtr. Is the address displayed the same as value1’s?
```
a) long* longPtr;
b) longPtr = &value1;
c) cout << *longPtr << '\n';
d) value2 = *longPtr;
e) cout << value2 << '\n';
f) cout << &value1 << '\n';
g) cout << longPtr << '\n'; yes.
```
You might also like to view...
Pascal case means you capitalize the first letter in the name and the first letter in any subsequent words in the name.
Answer the following statement true (T) or false (F)
________ models software in terms similar to those that people use to describe real-world objects.
a. Object-oriented programming b. Object-oriented design c. Procedural programming d. None of the above
The computer software that allows people to interact with a database
A) Database object B) Database C) Database management system
The ________ function rounds a number down toward zero to the number of digits indicated
Fill in the blank(s) with correct word