how to check whether a linked list is circular.
Answer Posted / lohitha
node *ptr1,*ptr2;
ptr1=head;
ptr2=head->next;
while(ptr2)
{
if(ptr1==ptr2)
{
printf("circular linked list");
break;
}
ptr2=ptr2->next;
}
printf("not a circular linked list");
Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What is full form of PEPSI
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.
Develop a routine to reflect an object about an arbitrarily selected plane
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
write a simple calculator c program to perform addition, subtraction, mul and div.
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
could you please send the program code for multiplying sparse matrix in c????
how to test pierrot divisor
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
Cluster head selection in Wireless Sensor Network using C programming language.
why nlogn is the lower limit of any sort algorithm?
Sir... please give some important coding questions asked by product companies..
What is data _null_? ,Explain with code when u need to use it in data step programming ?
Write a program to model an exploding firecracker in the xy plane using a particle system