Question: Consider the following attempt to allocate a 10-element array of pointers to doubles and initialize the associated double values to 0.0. Rewrite the following (incorrect)
Consider the following attempt to allocate a 10-element array of pointers to doubles and initialize the associated double values to 0.0. Rewrite the following (incorrect) code to do this correctly.
double* dp[10]
for (int i = 0; i < 10; i++) dp[i] = 0.0;
Step by Step Solution
3.27 Rating (168 Votes )
There are 3 Steps involved in it
include using namespace st... View full answer
Get step-by-step solutions from verified subject matter experts
