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 / atul bodke

correction in prev answer ...
i saw it after posting ... :)
correction in while loop ...
while(ptr!=null)
{
p[(n++)%10]=ptr;
ptr=ptr->next;
}
................................

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does scope resolution operator do?

1072


What is the main purpose of overloading operators?

1088


What is a catch statement?

997


When should overload new operator on a global basis or a class basis?

1043


Which coding certification is best?

981


What are the advantages of pointers?

1032


When do you call copy constructors?

1100


What is the prototype of printf function?

1127


Do you know the problem with overriding functions?

1049


What is the difference between global variables and static varables?

1090


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2288


What is the use of 'using' declaration in c++?

1109


Define copy constructor.

1068


Can class objects be passed as function arguments?

1020


What is iterator in c++?

1071