Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Tell How To Check Whether A Linked List Is Circular ?



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

Post New Answer

More C++ Interview Questions

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.

1 Answers  


Can we call C++ OOPS? and Why

0 Answers  


Name the operators that cannot be overloaded.

1 Answers   Wipro,


What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


What is conversion constructor in C++

0 Answers   TCS,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


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?

0 Answers   Alter,


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

0 Answers  


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


What is a virtual base class?

6 Answers   Fidelity, Siemens,


Categories