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

Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 Answers  


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


Question on Copy constructor.

0 Answers   Alter,


Without using third variable write a code to swap two numbers.

0 Answers   Accenture,


There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?

0 Answers   Alter,


How to generate random numbers in C++ with a range?

0 Answers  


what is the difference between a pointer and a reference?

0 Answers   Amazon, Blue Star, C DAC,


Define an Abstract class in C++?

0 Answers  


What are the different scope C++ provide ?

0 Answers   Amdocs,


Is there a difference between class and struct?

0 Answers  


Write a program that can take input from 3 to 8 and calculate the average?

0 Answers   Accenture,


What is bool in C++

0 Answers  


Categories