Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C
What will be the output of the program?
#include
void m_arr(int m[][3])
{
m[0][1] = 3;
int p = 0, q = 0;
for (p = 0; p < 2; p++)
for (q = 0; q < 3; q++)
printf("%d", m[p][q]);
}
void main()
{
int arr[2][3] = {0};
m_arr(arr);
}
1
0 0 3 0 0 0
2
0 0 0 0 0 3
3
0 0 3 0 3 0
4
0 3 0 0 0 0