What is the output of the following code fragment?

float *p1;
p1 = new float(3);
cout << *p1;
a. 3.0
b. unknown, the address p1 points to is not initialized
c. unknown, the code is illegal, p1 points to a dynamic array
d. 0.0


a. 3.0

Computer Science & Information Technology

You might also like to view...

Which of the following is a key service that ought to be checked when evaluating vendor support?

A) Hardware Support B) Software Support C) Maintenance D) All of the above

Computer Science & Information Technology

Big data analytics is usually associated with ________ services

A) data warehouse B) management information C) decision support D) office support

Computer Science & Information Technology

One ____ represents a radiated alternating current or emission of one cycle per second.

A. Angstrom B. Hertz C. nanometer D. rpm

Computer Science & Information Technology

Which of the following does NOT determine the speed of the Intel microprocessor shown in the accompanying figure?

A. clock speed B. number of cards on motherboard C. word size D. number of processors on chip

Computer Science & Information Technology