GATE CS 2019 (Forenoon) — Question 34

Programming in CPointers, Multi-Dimensional Arrays, StructuresNAT1 markMedium

Consider the following C program:
c
1#include <stdio.h>
2int main ( ) {
3    int arr[ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 5}, *ip = arr + 4;
4    printf ("%d\n", ip[1]);
5    return 0;
6}
7
The number that will be displayed on execution of the program is ________.
Practise the full 2019-FN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAThis week's 10-question challengeSame 10 past-GATE questions for everyone this week — see where you stand.
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