GATE Computer Science (CS) 2021 Shift 2 Solved Paper
© examsiri.com
Question : 20 of 65
Marks:
+1,
-0
Consider the following 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;
}
}
print("%d", *(arr[1] + 9));
return 0;
}
What is the output of the above 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;
}
}
print("%d", *(arr[1] + 9));
return 0;
}
What is the output of the above program?
Go to Question: