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 / rohith

it can be just done tis way!!
temp=first;
while(temp->link->link->link->link->link->link->link->link-
>link!=NULL)
{
temp=temp->link;
}
printf("%d",temp->data);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is code reusability in c++?

907


Explain the extern storage classes in c++.

758


How can you link a c++ program to c functions?

839


What is general format for a prototype?

794


Can you overload the operator+ for short integers?

792


Define copy constructor.

840


What are static and dynamic type checking?

798


What is & in c++ function?

784


Is c++ a difficult language?

763


What is a c++ class?

846


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

896


How do you clear a map in c++?

814


How does class accomplish data hiding in c++?

903


What are the two types of comments?

754


What return value must conversion operators have in their declaration?

808