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...


Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.

Answers were Sorted based on User's Feedback



Implement a function that returns the 5th element from the end in a singly linked list of integers..

Answer / vrushali

In whatever the case , we require to know the no of nodes in
the LL. As there is no way to know the total no of nodes
without traversing the LL.

Please coorect me if I am wrong.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What does typeof return in c?

0 Answers  


C program to perform stack operation using singly linked list

3 Answers  


two variables are added answer is stored on not for third variable how it is possible?

3 Answers  


What is the use of putchar function?

0 Answers  


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,


What are the applications of c language?

0 Answers  


What are pointers?

0 Answers   Accenture, Tavant Technologies, Zensar,


wat is the difference between array and pointer?

4 Answers   Wipro,


Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 Answers  


What are register variables? What are the advantage of using register variables?

0 Answers   TISL,


program to print circle structure

1 Answers  


write a program to swap two numbers without using temporary variable?

3 Answers  


Categories