Which of the following statements correctly deletes a dynamically-allocated array pointed to by p?

A) delete p;
B) p delete[ ];
C) delete [ ] p;
D) delete array p;
E) None of the above


C) delete [ ] p;

Computer Science & Information Technology

You might also like to view...

The business impact analysis (BIA) is the first major component of the CP process.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Copyright duration is also referred to as the copyright ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Identify and describe several common problems at Layer 1 of a network

What will be an ideal response?

Computer Science & Information Technology

What is the maximum number of comparisons that would be needed to determine whether or not a match is found in a binary search of 64 elements?

a) 6 b) 7 c) 63 d) 64

Computer Science & Information Technology