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
Get step-by-step solutions from verified subject matter experts
