if i will be having a program that has a allocated structure with pointers, how can i make a delete function????
example if the program asked for the address of a person and you would like to delete that particular address...hhow can i make that c program function????????
How can i make a c program function that can delete an allocated structure?
If you used malloc() to create the allocated memory, use free() in the reverse order to free up the memory.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment