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
if one won't explicitly call the destructor of a local; then how does he handle the above situation?

write a program that adds all numbers from 1 to 200

replace character into string and return value of string that are replaced

void main() { int *p, *q, i ; p=(int*)100; q=(int*)200; i=q-p; printf("%d",i); } }

C Program for FUNCTION  OF COMPOUND INTEREST float ci(float,float,float); void main() {           float p=0,r=0,n=0,k=0;           clrscr();           printf("EN

Using the Constructor There are basically three ways of creating and initializing the object. The first way to call the constructor is explicitly as :

Implement a Algorithm to verify if the link list is in Ascending order? A: template bool linklist::isAscending() const{ nodeptr ptr = head; while (ptr->_next)

find the occurence of zy in the final string

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process

real time application of b tree