A. Writa a statement that declares sales to be a pointer to a pointer of type do
ID: 3640819 • Letter: A
Question
A. Writa a statement that declares sales to be a pointer to a pointer of type double.B. Writa a C++ code that dynamically creates a two-dimensional array of five rows and seven columns and sales contains the base address of that array.
C. Write a C++ code that inputs data from the standard input device into the array sales.
D. Write a C++ code that deallocates the memory space occupied by the two-dimensional aray to which sales points.
I do not entire code just the statements per line. please help ty.
Explanation / Answer
A. double **sales = &ptr B. double[][] arr = new double[5][7]; sales = arr C. Ifstream in; for(int i =0; i< 5; i++){ for(int j =0; j < 7; j++) in >> sales[i][j]; D. delete sales;Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.