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 / atul bodke

correction in prev answer ...
i saw it after posting ... :)
correction in while loop ...
while(ptr!=null)
{
p[(n++)%10]=ptr;
ptr=ptr->next;
}
................................

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between java and c++?

508


What is #include iostream h in c++?

588


What are the four main data types?

559


Define 'std'.

584


Explain the uses of static class data?

574






What is a v-table?

617


How would you call C functions from C++ and vice versa?

602


What are 2 ways of exporting a function from a dll?

584


How many different levels of pointers are there?

629


What is the use of bit fields in structure declaration?

513


What methods can be overridden in java?

645


What is a responder chain?

548


what is C++ objects?

647


Can we delete this pointer in c++?

655


What is the difference between while and do while loop? Explain with examples.

571