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
What is code reusability in c++?
Explain the extern storage classes in c++.
How can you link a c++ program to c functions?
What is general format for a prototype?
Can you overload the operator+ for short integers?
Define copy constructor.
What are static and dynamic type checking?
What is & in c++ function?
Is c++ a difficult language?
What is a c++ class?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
How do you clear a map in c++?
How does class accomplish data hiding in c++?
What are the two types of comments?
What return value must conversion operators have in their declaration?