Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2015 Set 3
Questions

Q26

NAT2 marksProgrammingMedium

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 _______.

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.