Top

Discussion

Pick out the output

#include 
    int main()
    {
        foo(ary);
    }
    void foo(int **ary)
    {
        int i = 10, k = 10, j = 2;
        int *ary[2];
        ary[0] = &i;
        ary[1] = &j;
        printf("%d\n", ary[0][1]);
    }

 

  • A.compile time error
  • B.Runtime error
  • C.Output : 20
  • D.Undefined Behaviour

Answer: D

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment