Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Linked List Doubly Linked List
If we want to find last node of a singly linked list then the correct coding is
1
if (temp-link ! = NULL) temp = temp-link
2
if (temp-data = Num) temp = temp-link
3
While (temp-link ! = NULL) temp = temp-link
4
While (temp-link! = data) temp = temp-link