Can you tell me how to check whether a linked list is circular?

Answer Posted / hrpynux@gmail.com

If any node seems to be pointing towards the head or starting node then the linked list is circular. If no node is pointing to null.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we increase size of array in c?

544


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

612


How do you override a defined macro?

704


What is union in c?

641


What is the code in while loop that returns the output of given code?

1333






How do we print only part of a string in c?

587


How many data structures are there in c?

620


I need previous papers of CSC.......plz help out by posting them.......

1818


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

617


How to delete a node from linked list w/o using collectons?

2091


What are pointers? Why are they used?

632


Are negative numbers true in c?

602


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

580


Tell me the use of bit field in c language?

632


What is static identifier?

706