Question
Option 3 : head points to the node containing 30 and head→next→data is 20 / head 30 वाले नोड को इंगित करेगा और head→next→data 20 होगा
Detailed Solution
सही उत्तर head points to the node containing 30 and head→next→data is 20 / head 30 वाले नोड को इंगित करेगा और head→next→data 20 होगा है।
Question:
A singly linked list is 10 → 20 → 30 → NULL. After the standard iterative reversal using three pointers, which node does head point to, and what is head→next→data? / एकल लिंक्ड सूची 10 → 20 → 30 → NULL है। तीन पॉइंटर वाले मानक पुनरावृत्तीय उत्क्रमण के बाद head किस नोड को इंगित करेगा, और head→next→data क्या होगा?
Correct Answer: head points to the node containing 30 and head→next→data is 20 / head 30 वाले नोड को इंगित करेगा और head→next→data 20 होगा
Reversal flips every link, giving 30 → 20 → 10 → NULL; head points to the node with 30, whose next holds 20. / उत्क्रमण हर लिंक को पलट देता है: 30 → 20 → 10 → NULL; head 30 वाले नोड को इंगित करता है, जिसका अगला 20 रखता है।