What is the difference between delete and delete[]

Answer Posted / glibwaresoftsolutions

• 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

Define jit compiler?

830


Which programming language is most secure?

720


How to retrieve data from database in java using arraylist?

736


What is visibility mode?

720


Define inheritance?

767


What is close method? How it's different from Finalize & Dispose?

770


Differentiate between == and equals().

786


What is stringwriter?

729


Explain working of call by reference function invoking.

780


What is the collection interface?

775


Should a main method be compulsorily declared in all java classes?

770


What are different types of classloaders?

770


How we create object in copy constructor?

853


How do I remove a character from a string in java?

702


Is sizeof a preprocessor?

725