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

How do I start a c++ project?

1032


Declare a class vehicle and make it an abstract data type.

937


What is setbase c++?

1069


What are the advantages of early binding?

1026


Is it possible to write a c++ template to check for a function's existence?

974


Which is the best c++ compiler for beginners?

1041


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1032


How does java differ from c and c++?

946


What is a c++ object?

1116


What is the use of lambda in c++?

983


What is switch case in c++ syntax?

1073


What language is a dll written in?

989


Where must the declaration of a friend function appear?

923


Who made c++?

1033


What is a tree in c++?

930