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 |
what is friend function in C++?
It is possible to build a C++ compiler on top of a C compiler. How would you do this?
What are the advantages and disadvantages of B-star trees over Binary trees?
Is deconstructor overloading possible? If yes then explain and if no Then why?
Explain the FOR loop with a help of a code.
Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }
What Are The Differences Between A C++ Struct And C++ Class?
Write a C++ Program to find Addition of Two Numbers.
what is a pragma in C++?
What are string library functions(syntax).
What is an abstract class?
What is the purpose of a constructor? Destructor?