Computer Science · Data Structures
निम्नलिखित दो C++ कथनों और उनके संदर्भों पर विचार करें: (a) return P->next == NULL; // P एक सिंगली लिंक्ड लिस्ट L में एक तत्व का पॉइंटर है। (b) return S->next == NULL; // S एक सिंगली लिंक्ड लिस्ट के रूप में लागू किया गया स्टैक है। यदि दोनों मामलों में रिटर्न मान TRUE है, तो निम्नलिखित में से कौन सा सही है?
- 1L और S दोनों खाली हैं।
- 2L खाली है, और S भरा हुआ है।
- 3P, L के अंतिम तत्व को इंगित करता है, और S भरा हुआ है।
- 4P, L के अंतिम तत्व को इंगित करता है, और S खाली है।✓
सही उत्तर देखें
P, L के अंतिम तत्व को इंगित करता है, और S खाली है।
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures