We want a pointer called ptr to hold the address of a space in the heap large enough for an integer. We would use the line of code:

A. new ptr = new int;
B. new ptr = int;
C. ptr = int new;
D. ptr = new int;


D

Computer Science & Information Technology

You might also like to view...

What changes need to be made to the following class in order to change it to a template class?

class containerClass { public: containerClass(); containerClass(int newMaxSize); containerClass(const containerClass& source); ~containerClass(); int getItem(); int getCount(); int getSize(); void addItem(int item); private: int *bag; int maxSize, count; }; a. add the template prefix b. change all occurrences of int to T c. change the parameter type of addItem to T d. change the return type of getItem to T e. change the return type of getSize to T f. change the parameter type of the implicit constructor to T g. A and B h. A and C and D i. A and C and D and F

Computer Science & Information Technology

An empty ARP cache indicates what?

What will be an ideal response?

Computer Science & Information Technology

When the default body or heading font in a document is changed, all new text in that document will use the new font

Indicate whether the statement is true or false

Computer Science & Information Technology

The two types of meshed topologies are partially meshed and wholly meshed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology