Multiple Choice
The statement int *ptr = new int; acquires memory to hold an integer and then
A) initializes the allocated memory to 0.
B) assigns an integer value to the variable called ptr.
C) sets ptr to point to the allocated memory.
D) creates a new pointer called int.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q10: A function may return a pointer, but
Q15: An array name is a pointer constant
Q52: Memory cannot be allocated after a program
Q54: With pointer variables, you can _ manipulate
Q55: A _ keeps track of dynamically-allocated memory
Q56: Any time you use the new operator,
Q57: The statement double *num;<br>A) defines a variable
Q59: The statement cout << *ptr; will output<br>A)
Q61: A dangling pointer is a pointer<br>A) to
Q62: A pointer may be initialized with<br>A) the