ExamVeda
Login
Home
This question belongs to C Program Pointer
Pointer
?

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    foo(ary);
}
void foo(int **ary)
{
    int i = 10, k = 20, j = 30;
    int *ary[2];
    ary[0] = &i;
    ary[1] = &j;
    printf("%d\n", ary[0][1]);
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.