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

In C++ what do you mean by Inheritance?

0 Answers   Accenture,


How can a C function be called in a C++ program?

0 Answers  


What are string library functions(syntax).

0 Answers   Accenture,


What Are The Differences Between A C++ Struct And C++ Class?

2 Answers   Wipro,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


How does stack look in function calls? Write a recursive function call, how will the stack look like?

0 Answers   Adobe,


What is meant by exit controlled loop?

0 Answers   Adobe,


What is a constructor initializer list?

0 Answers   Amazon,


Describe the different styles of function prototypes in C++.

0 Answers   Adobe,


Question on Copy constructor.

0 Answers   Alter,


What are issues if we mix new and free in C++?

0 Answers  


How to convert integer to string in C++

0 Answers  


Categories