What is the functional difference between myObj *x = new myObj[100]; delete x; and myObj *x = new myObj[100]; delete [] x;

  1. There is none; they both work as expected

  2. They both do nothing.

  3. The first will not invoke all myObj destructors

  4. It would'nt delete all the memory allocated to the objects


Correct Option: C

Find more quizzes: