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
How can you be sure that a program follows the ANSI C standard?
Why C language is a procedural language?
How to create struct variables?
What are the 5 types of inheritance in c ++?
write a program to find the given number is prime or not
What is 02d in c?
will u please send me the placement papers to my mail???????????????????
What 'lex' does?
Can you please compare array with pointer?
How to explain the final year project as a fresher please answer with sample project
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
what is stack , heap ,code segment,and data segment
What is a #include preprocessor?
What is a program flowchart?
What is gets() function?