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
How many different levels of pointers are there?
Which ide is best for c++?
what are the iterator and generic algorithms.
What is the identity function in c++? How is it useful?
What is void pointer in c++ with example?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
How many ways can a variable be initialized into in C++?
Is linux written in c or c++?
What does I ++ mean in c++?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is basic if statement syntax?
Why is c++ is better than c?
Write a program to find the Fibonacci series recursively.
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What is the use of :: operator in c++?