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 kind of problems does name mangling cause?
Write a C++ program to print strings in reverse order.
Explain why C++ is not purely Object Oriented Language
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
What does it mean to declare a function or variable as static?
How to run C++ program in cmd
Write a program that can take input from 3 to 8 and calculate the average?
In C++ what is the meaning of data hiding?
Write a C++ Program to Display Number (Entered by the User).
What is the difference between member functions and static member functions?
What are the costs and benefits of using exceptions?
What do you know about Volatile keyword in C++? Explain with an example code.