Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. Choose the right option

         string* x, y;

  2. A.
    x is a pointer to a string, y is a string
    B.
    y is a pointer to a string, x is a string
    C.
    both x and y are pointer to string types
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    * is to be grouped with the variables not the data types.


Be The First To Comment