Answer to Question #24738 in C++ for Rohan

Question #24738
Write a function to delete a node containing Book's information from a dynamically allocated stack of Books implemented with the help of the following structure.

struct BOOK{ int BNo; char BNAME[20]; BOOK*NEXT;};
1
Expert's answer
2013-02-21T08:09:36-0500
struct BOOK{ int BNo; char BNAME[20]; BOOK*NEXT;};

void deleteBook(BOOK &a){
//we delete next BOOK after BOOK a
a.NEXT = (a.NEXT)->NEXT;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS