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

What does std mean in c++?

1197


Which one is better- macro or function?

1283


What do you mean by public protected and private in c++?

1114


What is purpose of new operator?

1127


Why would you use pointers in c++?

1216


Define pre-condition and post-condition to a member function in c++?

1199


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2676


What is operator overloading in c++ example?

1184


What apps are written in c++?

1141


Can char be a number c++?

1104


How many static variables are created if you put one static member into a template class definition?

1089


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1162


What is the difference between strcpy() and strncpy()?

1194


Why do we use vector in c++?

1125


Const char *p , char const *p What is the difference between the above two?

1256