Tell How To Check Whether A Linked List Is Circular ?
Answer / dhayalan.n
we will store the header node into some other variable, then traverse the list, if we get null at the next part of any node, then that is not circular, otherwise we will check the next node is same as the stored node or not, if so then that is circular
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
Write a C++ program to print strings in reverse order.
Question on Copy constructor.
Without using third variable write a code to swap two numbers.
There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?
How to generate random numbers in C++ with a range?
what is the difference between a pointer and a reference?
0 Answers Amazon, Blue Star, C DAC,
Define an Abstract class in C++?
What are the different scope C++ provide ?
Is there a difference between class and struct?
Write a program that can take input from 3 to 8 and calculate the average?
What is bool in C++