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