![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type. RTTI is the official way in standard C++ to discover the type Latest Answer : We can only assign a derived object to a base object pointer and a base class member to a derived class member pointer. ... Latest Answer : A simple way out would be..Use two pointers..*traverse and *nth_positionboth initialised to null..While you traverse to the end of the list using *traverse,let *nth_position follow only after n iterations..So at all times, *nth_position will be n places ... Write a program to concatenate two circular linked lists into a single circular list. Latest Answer : Hi It is very simple.Get the Node values from first Circular list and stored in one temp. array.You can keep track of repeated values by checking and comparing each value and then put into array.Now you can add all this array values into second link list. ... Hi I very recently did the C++ online Quiz and was surprised to find that my answer (1) to the following question (below) was incorrect. Is there something I am missing here, or is the answer incorrect. Latest Answer : gpuchtel's answer makes sense to me. The fact that size of the derived class object is sum of size of all the public and private members of base class and derived class corroborates the argument. ... What is the most efficient way to reverse a linklist? Latest Answer : struct node{ int iData; struct node *iNext;};typedef struct node Node;///////////////////////////////////////////////////Node * ReverseList(Node *aHead){ Node *prev; Node *cur; ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||