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 are the c++ access specifiers?

1480


How delete [] is different from delete?

1053


Which of the following is evaluated first: a) && b) || c) !

2420


What is private public protected in c++?

1094


What are the methods of exporting a function from a dll?

1300


What are the two types of comments?

1050


What is c strings syntax?

1205


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1148


How do you flush std cout?

1149


Briefly describe a B+ tree. What is bulk loading in it?

1399


What is the purpose of the "delete" operator?

1115


Incase of a function declaration, what is extern means?

1027


What is encapsulation in c++ with example?

1043


What is type of 'this' pointer? Explain when it is get created?

1066


What is c++ code?

1176