-
What will be the output of the following C code?
#include <stdio.h>
void fun(int number[][3])
{
number[0][1] = 15;
int k = 0, L = 0;
for (k = 0; k < 2; k++)
for (L = 0; L < 3; L++)
printf("%d ", number[k][L]);
}
void main()
{
int number[2][3] = {0};
fun(number);
}
-
- 0 15 0 0 0 Garbage value
- Runtime Error
- Compilation Error
- Only garbage value
- 0 15 0 0 0 0
Correct Option: E
0 15 0 0 0 0