Define difference among delete and delete[]?, C/C++ Programming

when you allocate memory with new[], you ought to free the memory via delete[]. While you allocate memory along 'new', then use 'delete' with no the brackets. You employ new[] to allocate an array of values (always beginning at the index 0).

 

Posted Date: 3/16/2013 3:21:34 AM | Location : United States







Related Discussions:- Define difference among delete and delete[]?, Assignment Help, Ask Question on Define difference among delete and delete[]?, Get Answer, Expert's Help, Define difference among delete and delete[]? Discussions

Write discussion on Define difference among delete and delete[]?
Your posts are moderated
Related Questions
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poin

A: They are following: Const: point out that memory once initialized, must not be modify through a program. Volatile: denote that value in the memory location can be modified

Project Description: I have a barber salon I am seeking someone to build me software for my PARTNER PT6910 touch screen till system. This software must add multiple staff login

a palindrome is a string that reads the same from bhote the ends

The break statement The break statement, which was already covered in the switch.. case, can also be used in the loops. When a loop statement is encountered in the loops the co

Write a C++ program which does the following: 1. Asks the user to enter the following text "Four score and seven years ago there was a man named Joey Bagadonuts." 2. Save thi

Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Write a c++ program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points c

Looping Statements The statements usually used for looping are for, do-while, while. The goto statement can be used for looping, but its use is generally avoided as it leads to

how to compare one file with another file. comparison should be like first line of first file compare every line of second file until it gets a blank line starting from the top and