Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What substitution should be made to //-Ref such that ptr1 points to variable C?

    int main()
    {
    int a = 1, b = 2, c = 3;
    int *ptr1 = &a;
    int **sptr = &ptr1;
    //-Ref
    }
  2. A.
    *sptr = &c;
    B.
    **sptr = &c;
    C.
    *ptr1 = &c;
    D.
    None of the mentioned.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment