Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2021 Set 2
Questions

Q10

MCQ1 mark, −0.33

Consider the following ANSI C\text{ANSI C} program.

#include <stdio.h>
int main()
{
    int arr[4][5];
    int i, j;
    for (i=0; i<4; i++)
    {
        for (j=0; j<5; j++)
        {
            arr[i][j] = 10 * i + j;
        }
    }
    printf("%d", *(arr[1]+9));
    return 0;
}

What is the output of the above program?

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.