{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

new_delete - C new and delete Stack*S S = new Stack delete...

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online