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

Consider the following program in C language: #include &lt;stdio.h> main() { &nbsp; &nbsp; int i; &nbsp; &nbsp; int *pi = &i; &nbsp; &nbsp; scanf("%d",...
#16 MCQ
Consider the following two C code segments. Y and X are one and two dimensional arrays of size n and n × n respectively, where 2 ≤ n ≤ 10. Assume that in both c...
#25 MCQ
Consider the following C program segment. #include&lt;stdio.h&gt; int main( ) { &nbsp; &nbsp; char s1[7] = "1234", *p; &nbsp; &nbsp; p = s1 + 2; &nbsp; &nbsp;...
#37 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......