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

Can a constructor be private?

1068


What is object in c++ wikipedia?

995


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1178


What is buffer and example?

1001


what is Member Functions in Classes?

1192


What is ostream in c++?

1009


What are the various oops concepts in c++?

1032


Name the debugging methods that are used to solve problems?

1081


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2538


What are the uses of c++ in the real world?

1030


Discussion on error handling of C++ .

1118


Explain stack unwinding.

1073


What are the main features of c++?

1002


Describe private, protected and public?

1075


an integer constant must have atleast one a) character b) digit c) decimal point

1024