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 / atul bodke
correction in prev answer ...
i saw it after posting ... :)
correction in while loop ...
while(ptr!=null)
{
p[(n++)%10]=ptr;
ptr=ptr->next;
}
................................
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are manipulators in c++ with example?
Explain explicit container.
What is the first name of c++?
What is object oriented programming (oop)?
What is difference between c++ and c ++ 14?
Explain the problem with overriding functions
What is the difference between #define debug 0 and #undef debug?
What is the operator in c++?
Why use of template is better than a base class?
how to access grid view row?
What is the use of object in c++?
What are register variables?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What gives the current position of the put pointer?
What is c++ best used for?