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

Answer Posted / lly

I think both #1 & #2 are wrong. Because the code travels
the list in two passes not one pass.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it better to use a macro or a function?

658


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3057


What is structure pointer in c?

573


Explain bitwise shift operators?

632


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

618






pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1863


What is the code in while loop that returns the output of given code?

1320


When c language was developed?

642


When should volatile modifier be used?

557


What is memory leak in c?

638


What is memcpy() function?

623


What is a void * in c?

598


What are the differences between Structures and Arrays?

612


Explain void pointer?

592


a program that can input number of records and can view it again the record

1487