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 do you mean by const correctness?
Does c++ have foreach?
Why do we use using namespace std in c++?
What are c++ storage classes?
What are punctuators in c++?
What is the difference between multiple and multilevel inheritance in c++?
When does the c++ compiler create temporary variables?
Can c++ do everything c can?
Should I learn c or c++ or c#?
Which programming language is best?
Name the debugging methods that are used to solve problems?
What is purpose of new operator?
What is the use of bit fields in structure declaration?
What is a dangling pointer in c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.