MCQs>IT & Programming>C Programming>Output of the following code? void myFunction(int foo[2][3]) { foo[0][1] = 5; int i = 0, j = 0; for (i = 0; i < 2; i++) for (j = 0; j < 3; j++) printf('%d ', foo[i][j]); } int main() { int foo[2][3] = {0}; myFunction(foo); return 0; }
C Programming MCQs
What is the output of the following code? void myFunction(int foo[2][3]) { foo[0][1] = 5; int i = 0, j = 0; for (i = 0; i < 2; i++) for (j = 0; j < 3; j++) printf("%d ", foo[i][j]); } int main() { int foo[2][3] = {0}; myFunction(foo); return 0; }
Answer
Correct Answer: 0 5 0 0 0 0
Explanation:
Note: This Question is unanswered, help us to find answer for this one