Write a function to find the nth item from the end of a linked list in a single pass.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Briefly describe a B+ tree. What is bulk loading in it?

0 Answers   Wipro,


Tell me what are static member functions?

0 Answers  


Write a program to show polymorphism in C++?

0 Answers   Impetus, Verifone,


What is & in c++ function?

0 Answers  


Define a pointer to a data member of the type pointer to pointer?

0 Answers  






what are the types of Member Functions?

0 Answers  


Define anonymous class.

0 Answers  


Give an example of run-time polymorphism/virtual functions.

0 Answers  


What is polymorphism and its type in c++?

0 Answers  


Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?

0 Answers   Maxobiz,


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

0 Answers  


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

0 Answers  


Categories