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


Please Help Members By Posting Answers For Below Questions

What are pointers in C? Give an example where to illustrate their significance.

1002


What are the different properties of variable number of arguments?

946


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1744


What is the use of structure padding in c?

838


Why is c so important?

816


What is main function in c?

827


What is indirection? How many levels of pointers can you have?

951


What is logical error?

894


Explain built-in function?

894


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1031


How are variables declared in c?

874


What is indirection?

868


How do I convert a string to all upper or lower case?

904


Why is struct padding needed?

857


how to count no of words,characters,lines in a paragraph.

4189