What is the output of the following segment of code?

int *p;
p = new int;
*p = 7;
cout << *p;

a) 0
b) 7
c) there will be an error message
d) we cannot tell because we do not know what memory address will be assigned to p


b) 7

Computer Science & Information Technology

You might also like to view...

Why might you not want to use all of the available space on a drive for a Windows installation?

What will be an ideal response?

Computer Science & Information Technology

The cornerstone of most firewalls is the ____, a set of instructions based on organizational policy, configured by the administrator.

A. rule set B. IP forwarding set C. packet filter D. DNS

Computer Science & Information Technology

Where is the motherboard on a tower computer?

A) On the bottom B) On the side C) On the top D) In the middle

Computer Science & Information Technology

You can assign a key combination to a macro by creating a macro with the name _____.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology