Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    void main()
    {
    int a[3] = {1, 2, 3};
    int *p = a;
    int **r = &p;
    printf("%p %p", *r, a);
    }
  2. A.
    Different address is printed
    B.
    1   2
    C.
    Same address is printed.
    D.
    1   1

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment