Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.
Answers were Sorted based on User's Feedback
Answer / 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 |
Why c language?
what is pointer ?
10 Answers Kernex Micro Systems,
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
Why is it that not all header files are declared in every C program?
how to count no of words,characters,lines in a paragraph.
main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }
What is structure padding ?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year
what is the difference between %d and %*d in c languaga?
Can you write the function prototype, definition and mention the other requirements.
What is the correct declaration of main?