GATE CS 2020 (Forenoon) — Question 32

Programming in CPointers, Multi-Dimensional Arrays, StructuresNAT1 markMedium

Consider the following C program:
c
1#include <stdio.h>
2int main( ) {
3    int a[4][5] = {{1, 2, 3, 4, 5},
4                   {6, 7, 8, 9, 10},
5                   {11, 12, 13, 14, 15},
6                   {16, 17, 18, 19, 20}};
7    printf("%d\n",*(*(a+**a+2)+3));
8    return(0);
9}
10
The output of the program is ________.
Practise the full 2020-FN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAFree All-India Mock — every SundayA full GATE CS paper, exactly 180 minutes, ranked across India with your GATE score.
Practise more on Pointers, Multi-Dimensional Arrays, StructuresTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group