Which of the following C++ statements will declare the pointer to array, if…

PYQ DSSSB 2018

Which of the following C++ statements will declare the pointer to array, if ‘nptr’ is pointer variable and ‘number’ is array variable?

  1. A.

    nptr=number

  2. B.

    nptr=number[ ]

  3. C.

    number=nptr

  4. D.

    *nptr=number;

Attempted by 663 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…