Consider the following ANSI C program:
What is the output of the above program?
c
- A14
- B20
- C24
- D30
Programming in CPointers, Multi-Dimensional Arrays, StructuresMCQ1 mark · −1/3 if wrongMedium
1#include <stdio.h>
2int main( ) {
3 int arr[4] [5] ;
4 int i, j;
5 for (i = 0; i < 4; i++) {
6 for (j = 0; j < 5; j++) {
7 arr[i] [j] = 10 * i + j;
8 }
9 }
10 printf("%d", *(arr[1] + 9));
11 return 0;
12}
13A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.