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 the differences between java and c++?
What is #include iostream h in c++?
What are the four main data types?
Define 'std'.
Explain the uses of static class data?
What is a v-table?
How would you call C functions from C++ and vice versa?
What are 2 ways of exporting a function from a dll?
How many different levels of pointers are there?
What is the use of bit fields in structure declaration?
What methods can be overridden in java?
What is a responder chain?
what is C++ objects?
Can we delete this pointer in c++?
What is the difference between while and do while loop? Explain with examples.