2077 6

BIT102 ยท 2077 ยท 5 marks

Find errors (If any) in the following program and rewrite it. ```c #define (studio,h) float main < > int m [ ] [ ] = 1,2,3,4; for (i = 4, I>=0 ; i--) for (j=0, j <4; j++); m[i] [j] = a[i][j] + b[i][j]; return 0. 0; } ```

Find errors (If any) in the following program and rewrite it.

#define (studio,h)
float main < >
int m [ ] [ ] = 1,2,3,4;
for (i = 4, I>=0 ; i--)
for (j=0, j <4; j++);
m[i] [j] = a[i][j] + b[i][j];
return 0. 0;
}

[5]

C ProgrammingChapter 1: Fundamentals of C ProgrammingCompilation and execution process

--- Erroneous Code Error Description ------------------------------------- 1 define (studio,h) Wrong preprocessor directive; should be include <stdio.h 2 float main < main must return int, not float; < should be () 3 int m[][] 2D array declaration is incomplete; must specify at least the column s...