Question: Please using c++ language to solve this Problem9 Consider the code fragment below. It is supposed to construct a 3x4 (3 rows 4 columns) 2d

Please using c++ language to solve this
Problem9 Consider the code fragment below. It is supposed to construct a 3x4 (3 rows 4 columns) 2d array of integers and set each value to zero. However, as given it does not. Add the proper dereferences ()or references (&) to make this code work properly: int rows, coll, col2, col3; rows new int[3]; ol1 new int [4]; co12new int [4]; co13 new int[4]; // Create 3 pointers to columns /I Create first row with 4 elements /I Create second row with 4 elements /I Create third row with 4 elements rows +e)-col1(e]; II Point to first row rows +1) co12[e]; Point to second row rows+2) col3[e]; // Point to third row for (int i e; ic3; i++) for (int j- e; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
