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...

Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.

Answer Posted / vrushali

In whatever the case , we require to know the no of nodes in
the LL. As there is no way to know the total no of nodes
without traversing the LL.

Please coorect me if I am wrong.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I do peek and poke in c?

1070


Is null valid for pointers to functions?

1160


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1381


What happens if header file is included twice?

1136


Can we access array using pointer in c language?

1080


Explain how can you be sure that a program follows the ansi c standard?

1467


Can include files be nested? How many levels deep can include files be nested?

1144


What is "Duff's Device"?

1158


find the sum of two matrices and WAP for it.

1128


What is strcmp in c?

1106


What is scanf_s in c?

1110


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1211


How many levels deep can include files be nested?

1133


How will you delete a node in DLL?

1281


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

1287