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

CSE MCQs :: C++ - MCQs

  1. What is meaning of following declaration?

    int(*p[5])();

  2. A.
    p is pointer to function.
    B.
    p is array of pointer to function
    C.
    p is pointer to such function which return type is array.
    D.
    p is pointer to array of function. View Answer

  3. Void pointer can point to which type of objects?
  4. A.
    int
    B.
    float
    C.
    double
    D.
    all of the mentioned

  5. When does the void pointer can be dereferenced?
  6. A.
    when it doesn't point to any value
    B.
    when it cast to another type of object
    C.
    using delete keyword
    D.
    none of the mentioned

  7. The pointer can point to any variable that is not declared with which of these?
  8. A.
    const
    B.
    volatile
    C.
    both a & b
    D.
    static

  9. A void pointer cannot point to which of these?
  10. A.
    methods in c++
    B.
    class member in c++
    C.
    both a & b
    D.
    none of the mentioned

  11. What we can't do on a void pointer?
  12. A.
    pointer arithemetic
    B.
    pointer functions
    C.
    both of the mentioned
    D.
    none of the mentioned