Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)

Answer Posted / vadivel

U mean without any looping statements r just for loop?????
It can be done in a single traversal using Hare n turtle
method as said above using a for or while loop.....
Without using looping statements d list can't be traversed..
Plz make the question clear.....

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

628


What is output redirection?

684


Why we use int main and void main?

533


What is huge pointer in c?

575


Explain function?

657






printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

632


What is the difference between pure virtual function and virtual function?

643


Difference between Function to pointer and pointer to function

625


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2234


Can we use any name in place of argv and argc as command line arguments?

605


Explain how can a program be made to print the line number where an error occurs?

688


Why is c so popular?

643


What is array within structure?

578


What is variables in c?

599


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

599