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...

The ________ pointer is used to create a custom table on a slide

Fill in the blank(s) with correct word

Computer Science & Information Technology

? In the figure above, which number points to the coordinate point (0,0)?

A. 1 B. 2

Computer Science & Information Technology