Computer Sciences > Gate 2015 Set-3 > C Code
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 _________

Correct : a

Similar Questions

The output of the following C program is __________. void f1 (int a, int b) { &nbsp; &nbsp; int c; &nbsp; &nbsp; c=a; a=b; b=c; } void f2 (int *a, int *...
#537 Fill in the Blanks
The output of the following C program is __________. void f1 (int a, int b) { &nbsp; &nbsp; int c; &nbsp; &nbsp; c=a; a=b; b=c; } void f2 (int *a, int *...
#537 Fill in the Blanks
The output of the following C program is __________. void f1 (int a, int b) { &nbsp; &nbsp; int c; &nbsp; &nbsp; c=a; a=b; b=c; } void f2 (int *a, int *...
#537 Fill in the Blanks

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......