GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2020

GATE 2020 · CS · NAT · 1 mark · Programming and Data Structures › C Programming Fundamentals

GATE 2020 Computer Science and Information Technology question: Consider the following C program. code The output of the program is .

Consider the following C program.

#include <stdio.h>
int main() {
    int a[4][5]={{1, 2, 3, 4, 5},
                 {6, 7, 8, 9, 10},
                 {11, 12, 13, 14, 15},
                 {16, 17, 18 , 19, 20}};
    printf("%d\n", *(*(a+**a+2)+3));
    return(0);
}

The output of the program is ___________.

Show answer

Official answer: 19

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion