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 / rohith

it can be just done tis way!!
temp=first;
while(temp->link->link->link->link->link->link->link->link-
>link!=NULL)
{
temp=temp->link;
}
printf("%d",temp->data);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain class & object in c++?

1096


Do inline functions improve performance?

1072


How is c++ used in the real world?

1043


What is c++ virtual inheritance?

1139


What is doubly linked list in c++?

1085


What is a float in c++?

989


What is meant by the term name mangling in c++?

963


What do you know about near, far and huge pointer?

1143


What is the type of 'this' pointer? When does it get created?

957


What is c++ code?

1128


How const int *ourpointer differs from int const *ourpointer?

1143


What's the order in which the objects in an array are destructed?

1419


What is setbase c++?

1141


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1031


What is extern c++?

1008