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
What are the c++ access specifiers?
How delete [] is different from delete?
Which of the following is evaluated first: a) && b) || c) !
What is private public protected in c++?
What are the methods of exporting a function from a dll?
What are the two types of comments?
What is c strings syntax?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
How do you flush std cout?
Briefly describe a B+ tree. What is bulk loading in it?
What is the purpose of the "delete" operator?
Incase of a function declaration, what is extern means?
What is encapsulation in c++ with example?
What is type of 'this' pointer? Explain when it is get created?
What is c++ code?