What is the difference between delete and delete[]

Answer Posted / hr@tgksolutions.com

• delete: Frees memory allocated for a single object.
• delete[]: Frees memory allocated for an array of objects.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are the elements of a gridbaglayout organized in java programming?

722


What is the purpose of file class?

742


What is overloading and overriding in java?

891


Can java cast null?

761


Is int primitive data type?

719


Is overriding possible in java?

687


What is ellipsis in java?

789


what is thread in Java ?

855


What is serial version uid and its importance in java?

787


What are the differences between processes and threads?

733


Can a class have multiple superclasses?

764


What are the restrictions imposed by a Security Manager on Applets?.

2275


What is identifier give example?

764


Can we force garbage collector to run ?

765


What are the basic control structures?

693