GATE CS 2019 · Question 34 · Programming and Data Structures · Numerical answer (NAT) · 1 mark · no negative marks
Consider the following C program:
#include <stdio.h> int main() int arr[]=1,2,3,4,5,6,7,8,9,0,1,2,5, *ip=arr+4; printf("%d ", ip[1]); return 0;
The number that will be displayed on execution of the program is ______.
Answer
Answer 6
Answer from the official GATE CS 2019 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes