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

Memory is not a constraint. In a single iteration(NOTE: you
can't go back), how will you find out the 10th last
node/item in a linked list.

Answer Posted / ashutosh

NO, it won't work.

because, after the wile loop, pos is pointing to the last
element NOT 10th last. So, you have to go back 10 elements.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an orthogonal base class in c++?

1167


What is long in c++?

1256


What is virtual destructor ans explain its use?

1137


Is c++ vector dynamic?

1142


Why pointer is used in c++?

1174


What is polymorphism and its type in c++?

1083


What are the different types of polymorphism in c++?

1151


Search for: what is pair in c++?

1124


What is private, public and protected inheritance?

1096


What is object file? How can you access object file?

1215


Are iterators pointers?

1164


Is ca high or low level language?

1091


What is meant by forward referencing and when should it be used?

1029


How the keyword struct is different from the keyword class in c++?

1046


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1236