1.

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);
}

A. 0 15 0 0 0 Garbage value
B. Runtime Error
C. Compilation Error
D. Only garbage value
E. 0 15 0 0 0 0
Answer» F.


Discussion

No Comment Found