Consider the following C program. #include<stdio.h> int main() { static int…
GATE · 2015 · CS · Set 3 · Computer Science & IT
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 ______________.
Attempted by 140 students.
Sign up free to check your answer
Sign up freeLoading lesson…