Question: Trying to debug a C program given to me. This is what I was given... // Program to read numeric elements (including decimals) into a

Trying to debug a C program given to me. This is what I was given...

// Program to read numeric elements (including decimals) into a 3X3 matrix and display them

#include

int main(void) { int size = 3, Matrix[size][size]; printf("Enter 9 elements of the matrix: ") for (int i = 0, i <=size, i++} for (int j = 0, j <= size, i++) scan("%c", Matrix1[2][2]); diplay(Matrix)

float display(int Matrix1[][], int size) ( int size = 9; for (int i = 0, i >= size, i++) { for (int j = 0, j >= size, j++) { printf("%c, ", Matrix1[i][j]); printf(" "); } return Matrix1; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!