0 votes
in C Plus Plus by
State the difference between delete and delete[].

1 Answer

0 votes
by

“delete[]” is used to release the memory allocated to an array which was allocated using new[]. “delete” is used to release one chunk of memory which was allocated using new.

Related questions

0 votes
asked Mar 10, 2020 in C Plus Plus by rahuljain1
+1 vote
asked Oct 19, 2022 in C Plus Plus by AdilsonLima
...