Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)
Answer Posted / santhoshr
It wont work exactly if the no of nodes is not given!!! So
better answer is having two pointers from first itslf.
And like this , another question is there,
to find the pth node from last!! That too haas the same logic!!!
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain a pre-processor and its advantages.
Why is C language being considered a middle level language?
Why is c fast?
Can i use “int” data type to store the value 32768? Why?
What is the size of structure in c?
Explain the difference between malloc() and calloc() in c?
Why does notstrcat(string, "!");Work?
What is sizeof in c?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is the use of in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What are dangling pointers in c?
Can you pass an entire structure to functions?
What is a method in c?
How can I use a preprocessorif expression to ?