GATE CS 2015, set 3 · Question 43 · Programming and Data Structures · Numerical answer (NAT) · 2 marks · no negative marks
Consider the following C program.
#include<stdio.h> int main( ) { static int a[ ] = {10, 20, 30, 40, 50}; static int *p[ ] = {a, a+3, a+4, a+1, a+2}; int **ptr = p; ptr++; printf("%d%d", ptr-p, **ptr); }
The output of the program is ______.
Answer
Answer 140
Answer from the official GATE CS 2015 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes