Question: Debug the following matrix program in C: // Program to read integers into a 3X3 matrix and display them #include void display(int Matrix[3][3],int size); int

Debug the following matrix program in C:

// Program to read integers into a 3X3 matrix and display them

#include

void display(int Matrix[3][3],int size);

int main(void) {

char size;

double Matrix[size][size+1];

printf("Enter 9 elements of the matrix: ");

int i;

for (i = 0: i <= size: i++)

{

int j = 0;

for (; j <= size++; j++){

scanf("%d", matrix[i--][4])

}

}

Display(Matrix,9);

return 0;

void display(float Matrix[3][3], int size) {

for (int i = 0, i > size: i++) {

for (int j = size: j >= 0;j--)

{

printf("#x, ", *matrix[j++][i]):

}

printf(" ");

}

}

}

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!