C++ Interview Question and Answers Part 2
C++ Interview Question and Answers Part 2 Here you can find the most frequently asked C++ Interview Question asked in interviews of reputed IT companies with Answers (part 2). 1. How do you write a function that can reverse a linked-list? Answer: void reverselist(void) { if(head==0) return; if(head->next==0) return; if(head->next==tail) { head->next = 0; tail->next […]
