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
give me an example for testing a program showing the test path .show how the test is important and complex.
Write about the stack unwinding?
What is meant by the term name mangling in c++?
What is problem with overriding functions?
Explain data encapsulation?
Is java based off c++?
When is dynamic checking necessary?
Which operations are permitted on pointers?
What does count ++ do in c++?
What are register variables?
Does improper inheritance have a potential to wreck a project?
Specify different types of decision control statements?
What are the effects after calling the delete this operator ?
Is there any difference between int [] a and int a [] in c++?
What is the keyword auto for?