Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)
Answer Posted / kar..
move the front pointer and rear pointer at equal
intervel,these both pointe will meet at one node is middle...
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Why c language?
What are the different types of endless loops?
how to make a scientific calculater ?
What is graph in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is wrong with this code?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is the use of a semicolon (;) at the end of every program statement?
What is the value of h?
Is c weakly typed?
What is a constant and types of constants in c?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
How can I call fortran?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(