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 |
Explain the importance of method overloading in C++?
0 Answers Akamai Technologies, Infogain,
Write a C++ Program to find Square Root of a number using sqrt() function.
Can we call C++ OOPS? and Why
Name the operators that cannot be overloaded.
What are the advantages/disadvantages of using #define?
What is conversion constructor in C++
Write a program to read two numbers from the keyboard and display the larger value on the screen
what is the difference between a pointer and a reference?
0 Answers Amazon, Blue Star, C DAC,
What are pass by value and pass by reference?what is the disadvantage of pass by value?
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
What is the purpose of a constructor? Destructor?
What is a virtual base class?