10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

memory to make it available for future use. To free memory that was allocated<br />

dynamically, use free(). Its prototype is<br />

void free(void *ptr);<br />

The free() function releases the memory pointed to by ptr. This memory must<br />

have been allocated with malloc(), calloc(), or realloc(). If ptr is NULL, free()<br />

does nothing. Sample program below demonstrates the free() function.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 71 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!