Memory is not a constraint. In a single iteration(NOTE: you
can't go back), how will you find out the 10th last
node/item in a linked list.

Answer Posted / ashutosh

NO, it won't work.

because, after the wile loop, pos is pointing to the last
element NOT 10th last. So, you have to go back 10 elements.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most common mistake on c++ and oo projects?

518


what you know about c++?

661


How new/delete differs from malloc()/free?

613


What are the four partitions in which c++ compiler divides the ram?

699


What is the difference between the functions memmove() and memcpy()?

630






Name the implicit member functions of a class.

596


Why c++ is the best language?

592


Can I learn c++ without learning c?

561


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

558


What are the data types in c++?

516


You run a shell on unix system. How would you tell which shell are you running?

659


What is the difference between while and do while loop?

555


What is class syntax c++?

591


What is the sequence of destruction of local objects?

556


What are the advantages of using a pointer?

603