Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How can you be sure that a program follows the ANSI C standard?

1593


Why C language is a procedural language?

1008


How to create struct variables?

1093


What are the 5 types of inheritance in c ++?

1011


write a program to find the given number is prime or not

4729


What is 02d in c?

1062


will u please send me the placement papers to my mail???????????????????

1826


What 'lex' does?

1155


Can you please compare array with pointer?

1065


How to explain the final year project as a fresher please answer with sample project

963


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1212


what is stack , heap ,code segment,and data segment

2682


What is a #include preprocessor?

1128


What is a program flowchart?

1174


What is gets() function?

1113