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 a constructor be private?
What is object in c++ wikipedia?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What is buffer and example?
what is Member Functions in Classes?
What is ostream in c++?
What are the various oops concepts in c++?
Name the debugging methods that are used to solve problems?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What are the uses of c++ in the real world?
Discussion on error handling of C++ .
Explain stack unwinding.
What are the main features of c++?
Describe private, protected and public?
an integer constant must have atleast one a) character b) digit c) decimal point