1.

What will be the output of the following C code?
 #include <stdio.h>
void function(int number[][])
{
number[0][1] = 12;
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};
function(number);
}

A. 0 12 0 0 0 0
B. Garbage value 12 Garbage value Garbage value Garbage value
C. Runtime Error
D. Compilation Error
E. None of these
Answer» E. None of these


Discussion

No Comment Found