In C++, which of the following statements correctly returns the memory from…

KVS TGT/PGT 2017Kendriya Vidyalaya Sangathan 2017

In C++, which of the following statements correctly returns the memory from the dynamic array pointer pp to the free store?

  1. A.

    delete pp;

  2. B.

    delete pp [ ];

  3. C.

    delete [ ] pp;

  4. D.

    *delete pp;

Attempted by 697 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…