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
Can we delete this pointer in c++?
What is constructor and destructor in c++?
Give an example of run-time polymorphism/virtual functions.
What are exceptions c++?
What size is allocated to the union variable?
What character terminates all character array strings a) b) . c) END
How do you declare a set in c++?
Is there structure in c++?
Write a program to show polymorphism in C++?
How to defines the function in c++?
What is a c++ class?
What is searching?
What is pointer -to-members in C++? Give their syntax?
What does iomanip mean in c++?
In what situations do you have to use initialization list rather than assignment in constructors?