The variable dp is to refer to an array of double. Assuming the integer variable n has been assigned a value, declare dp appropriately, allocate an array of n doubles and assign the resulting pointer to dp.
.
.
Click on the title for the solution
.
.
.
Click on the title for the solution
.
.
This is the answer:
.
double *dp;
dp = new double[n];
Comments
Post a Comment