Chapter 12: Problem 14
What is wrong with the following C++ code? double *deposit; //Line 1 double *intRate; //Line 2 double interest; //Line 3 deposit = new double; //Line 4 *deposit = 25000; //Line 5 interest = (*deposit) * (*intRate); //Line 6 cout << interest << endl; //Line 7
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.