Question: What is wrong with the following code that prints out the elements of a 2x3 array? for (int i = 0; i < 3;

What is wrong with the following code that prints out the elements of a 2x3 array? for (int i = 0; i < 3; ++i) { } for (int j = 0; j < 2; ++j) { } printf("x[%d] [%d] = %.2f ", i, j, x[i][j]);
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
The code you provided attempts to print out the elements of a 2x3 array Ho... View full answer
Get step-by-step solutions from verified subject matter experts
