Arrays


  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int array[2][3] = {10, 20, 30, 40, 50};
    int k = 0, L = 0;
    for (k = 0; k < 2; k++)
    for (L = 0; L < 3; L++)
    printf("%d ", array[k][L]);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    10 20 30 40 50 0