new_delete - C++: new and delete Stack *S; S = new Stack();...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
C: malloc() and free() Stack *S; S = (Stack*) malloc(sizeof(Stack)); ... free(S); Stack *S_Array; S_Array = (Stack*) malloc(sizeof(Stack) * 10)); ... free(S_Array);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C++: new and delete Stack *S; S = new Stack(); ... delete S; Stack *S_Array; S_Array = new Stack[10]; ... delete S_Array;...
View Full Document

This note was uploaded on 12/14/2011 for the course EECS 6.837 taught by Professor Durand during the Fall '03 term at MIT.

Ask a homework question - tutors are online